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

fix: retain feed page size #191

Merged
merged 2 commits into from
Jan 9, 2025
Merged

fix: retain feed page size #191

merged 2 commits into from
Jan 9, 2025

Conversation

fauna-chase
Copy link
Contributor

Currently when getting the next page of a feed, we clear the page size that it was created with. This means that if I start a feed with page size 1000, after that my subsequent pages will drop to the default page size of 16. This change makes it such that the page size will stay consistent.

I currently tested this in a qa environment where I am running change feeds to see how many events per second I can consume. I will add a test to this once I verify this is the behavior we want.

Copy link
Contributor

@erickpintor erickpintor left a comment

Choose a reason for hiding this comment

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

LGTM.

Probably makes sense to check other drivers as well.

Nice catch!

Currently when getting the next page of a feed, we clear the page size
that it was created with. This means that if I start a feed with page
size 1000, after that my subsequent pages will drop to the default page
size of 16. This change makes it such that the page size will stay
consistent.
@fauna-chase fauna-chase force-pushed the retain-feed-page-size branch from aa8dadc to 11f8234 Compare January 8, 2025 01:57
@fauna-chase fauna-chase marked this pull request as ready for review January 8, 2025 01:57
Copy link
Contributor

@cynicaljoy cynicaljoy left a comment

Choose a reason for hiding this comment

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

just a small suggestion, non-blocking

event_feed_test.go Outdated Show resolved Hide resolved
Co-authored-by: Darren Cunningham <[email protected]>
@fauna-chase fauna-chase merged commit f0e1686 into main Jan 9, 2025
5 checks passed
@fauna-chase fauna-chase deleted the retain-feed-page-size branch January 9, 2025 00:16
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.

3 participants