Repository navigation
docs: what --batch-rows bounds during a backfill, measured - #91
Merged
Merged
Conversation
The CLI guide said --batch-rows bounds how long a window's rows are out of sight. It is the other way round: batches commit on their own, so a window is out of sight for as long as its whole move takes, and larger batches shorten that. Smaller batches keep each statement short. Both guides now say so, with the numbers measured on Outpost's schema, and recommend running apply once before the first backfill.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The CLI guide said
--batch-rowsbounds how long a window's rows are out of sight duringbackfill. Measured on Outpost's schema it's the other way round: each batch commits on its own, so the window is out of sight for as long as its whole move takes. With 2,000 rows per batch a whole month (34,076 rows) was out of sight for up to 575 ms, with 10,000 up to 0.42 s, and with batches larger than the month about 30 ms. What smaller batches keep short is each statement: inserts waited at most 128 ms with 10,000 and up to 247 ms with month-sized batches.Both guides now say that and give the numbers. The CLI guide also recommends running
applyonce before the firstbackfill, as the Python guide already does: with the current month attached, new rows stop landing in DEFAULT behind the batches. Runningbackfillfirst, inserts waited up to 502 ms with month-sized batches.