Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch rows for consumption #180

Merged
merged 1 commit into from
Sep 23, 2021
Merged

Conversation

fabianfett
Copy link
Collaborator

@fabianfett fabianfett commented Sep 19, 2021

Motivation

To allow faster processing of incoming DataRows, we should batch them up in channelRead events and forward them as a batch for consumption in PSQLRowStream. This work is the foundation for AsyncSequence support in the future.

Modifications

  • Extends ExtendedQueryStateMachine to use RowStreamStateMachine internally
  • Refactor PSQLRowStream to work with batches of rows.

Copy link
Member

@gwynne gwynne left a comment

Choose a reason for hiding this comment

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

LGTM; I could offer a few dozen style nits, but everything looks functionally great, and I don't care about the style enough to hold things up for it 🙂

@fabianfett fabianfett merged commit 1017bca into vapor:main Sep 23, 2021
@fabianfett fabianfett deleted the ff-batch-consumption branch September 23, 2021 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants