Skip to content

Stream bulk insert payload instead of buffering it - #227

Draft
dippindots wants to merge 1 commit into
cBioPortal:mainfrom
dippindots:bulk-loader-stream
Draft

dippindots wants to merge 1 commit into
cBioPortal:mainfrom
dippindots:bulk-loader-stream

Conversation

@dippindots

Copy link
Copy Markdown
Collaborator

The loader copied every pending row into a ByteArrayOutputStream and then into a byte array before sending, holding the whole TSV payload in memory on top of the buffered rows. Encode each row as the driver reads the stream instead. Rows are still sent in one INSERT per table at flush, so visibility of inserts is unchanged.

The loader copied every pending row into a ByteArrayOutputStream and
then into a byte array before sending, holding the whole TSV payload in
memory on top of the buffered rows. Encode each row as the driver reads
the stream instead. Rows are still sent in one INSERT per table at
flush, so visibility of inserts is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dippindots dippindots self-assigned this Nov 12, 2026
@dippindots dippindots added the DO NOT MERGE This is not yet ready for merge label Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO NOT MERGE This is not yet ready for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant