Skip to content

Copy fetched row data directly into the ResultReader arena - #75

Open
MrTeeett wants to merge 1 commit into
mainfrom
5-copy-fetch-row-data-directly-into-the-arena
Open

MrTeeett wants to merge 1 commit into
mainfrom
5-copy-fetch-row-data-directly-into-the-arena

Conversation

@MrTeeett

@MrTeeett MrTeeett commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

ResultReader stores scalar values in the arena as it reads each row. It records each value's offset and length so the decoder can reuse its buffer for the next row.

ResultReader queues ARRAY handles until it has read the full fetch response, then loads the arrays in row and column order. If the fetch fails, it releases the partially buffered batch.

ResultReader stores scalar values in the arena as it reads each row.
It records each value's offset and length so the decoder can reuse its
buffer for the next row.

ResultReader queues ARRAY handles until it has read the full fetch
response, then loads the arrays in row and column order. If the fetch
fails, it releases the partially buffered batch.
@MrTeeett MrTeeett linked an issue Dec 4, 2026 that may be closed by this pull request
@MrTeeett MrTeeett self-assigned this Dec 4, 2026
@MrTeeett
MrTeeett requested a review from P1cheneG December 4, 2026 11:53
@MrTeeett MrTeeett added the performance Performance improvements label Dec 4, 2026
@MrTeeett MrTeeett added this to the v0.9.0 milestone Dec 4, 2026
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: Go

Go / code-coverage/gotest

main 9ec1124 5-copy-fetch-row-dat... 25dd2b7 +/-
79% 79% 0%
View coverage of the 6 most impacted files.
File main 9ec1124 5-copy-fetch-row-dat... 25dd2b7 +/-
fbevent/lifecycle.go 80% 78% -2%
fbtype/dec16.go 74% 74% 0%
fbconn/array.go 75% 75% 0%
fbconn/fbconn.go 78% 79% +1%
fbproto/sqldata.go 84% 85% +1%
fbtype/null.go 89% 92% +3%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Performance improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy Fetch row data directly into the arena

1 participant