Skip to content

Commit 474984f

Browse files
committed
try with simplified buffer
1 parent 281e45d commit 474984f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/integration/v2/stream.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,10 +389,9 @@ describe("streams", () => {
389389
);
390390
}
391391

392-
const json = JSON.stringify(row);
393-
const jsonBuffer = Buffer.from(json + "\n", "utf8");
394-
395-
this.push(jsonBuffer);
392+
// Simply pass through the row object instead of creating buffers
393+
// This avoids creating 100k Buffer objects
394+
this.push(row);
396395

397396
if (rowCount === seriesNum) {
398397
const transformEnd = Date.now();

0 commit comments

Comments
 (0)