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

store: Try to avoid pathological batch size adjustments #5792

Closed
wants to merge 1 commit into from

Conversation

lutter
Copy link
Collaborator

@lutter lutter commented Feb 3, 2025

If a batch is processed very fast, that might indicate that there are very few rows actually matching the range. If this happens repeatedly, we can end up with a gigantic batch size where processing a batch takes way too long once we get into a region with denser vids.

This patch tries to address that by taking a fast batch as an indication that vids are distributed sparsely and that we should jump directly to the next existing vid rather than adjusting the batch size.

If a batch is processed very fast, that might indicate that there are very
few rows actually matching the range. If this happens repeatedly, we can
end up with a gigantic batch size where processing a batch takes way too
long once we get into a region with denser vids.

This patch tries to address that by taking a fast batch as an indication
that vids are distributed sparsely and that we should jump directly to the
next existing vid rather than adjusting the batch size.
@lutter
Copy link
Collaborator Author

lutter commented Feb 11, 2025

Closing this in favor of #5807

@lutter lutter closed this Feb 11, 2025
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