Skip to content

ChunkedDataWriter: fetch and iterate within the same transaction - #442

Open
andibur wants to merge 1 commit into
releases/27.1from
features/abr/27.1/474697_chunkedDataWriter
Open

ChunkedDataWriter: fetch and iterate within the same transaction#442
andibur wants to merge 1 commit into
releases/27.1from
features/abr/27.1/474697_chunkedDataWriter

Conversation

@andibur

@andibur andibur commented Sep 8, 2026

Copy link
Copy Markdown
Member

Chunked data transfer is used for large amounts of data, such as those loaded from a database. In this case, it is absolutely necessary that the execution of the SQL statement and the iteration over the ResultSet take place within the same transaction.

This change modifies the signature of toResponse from an Iterator to a Supplier<Iterator>, allowing to create and iterate in the same RunContext.

474697

(cherry picked from commit ceb4c26)

Chunked data transfer is used for large amounts of data, such as those
loaded from a database. In this case, it is absolutely necessary that
the execution of the SQL statement and the iteration over the ResultSet
take place within the same transaction.

This change modifies the signature of toResponse from an Iterator<T> to
a Supplier<Iterator<T>>, allowing to create and iterate in the same
RunContext.

474697

(cherry picked from commit ceb4c26)
@andibur andibur self-assigned this Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant