Skip to content

chore(spannerlib): small optimizations for fetching multiple rows in .NET#860

Open
olavloite wants to merge 1 commit into
mainfrom
spannerlib-dotnet-optimize-fetch-multiple-rows
Open

chore(spannerlib): small optimizations for fetching multiple rows in .NET#860
olavloite wants to merge 1 commit into
mainfrom
spannerlib-dotnet-optimize-fetch-multiple-rows

Conversation

@olavloite

Copy link
Copy Markdown
Collaborator

Small optimizations for fetching multiple rows in the SpannerLib .NET wrapper. Also changes the NextResultSetAsync method to call the ContinueStreamingAsync method.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates StreamingRows.cs in the .NET wrapper of spannerlib. It optimizes row buffering in TryNextCached by directly returning the first row and only enqueuing the subsequent rows, avoiding an unnecessary enqueue/dequeue cycle. Additionally, it updates NextResultSetAsync to use the asynchronous ContinueStreamingAsync method instead of the synchronous ContinueStreaming method, passing the cancellation token. There are no review comments, so no feedback is provided.

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