Skip to content

Comments

store: Try to avoid pathological batch size adjustments#5792

Closed
lutter wants to merge 1 commit intomasterfrom
lutter/tiny-batch
Closed

store: Try to avoid pathological batch size adjustments#5792
lutter wants to merge 1 commit intomasterfrom
lutter/tiny-batch

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
@lutter lutter deleted the lutter/tiny-batch branch April 17, 2025 18:42
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