Skip to content

docs: what --batch-rows bounds during a backfill, measured - #91

Merged
AlexeyShalaev merged 1 commit into
masterfrom
docs/what-batch-rows-bounds
Oct 1, 2026
Merged

AlexeyShalaev merged 1 commit into
masterfrom
docs/what-batch-rows-bounds

Conversation

@AlexeyShalaev

Copy link
Copy Markdown
Member

The CLI guide said --batch-rows bounds how long a window's rows are out of sight during backfill. 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 apply once before the first backfill, as the Python guide already does: with the current month attached, new rows stop landing in DEFAULT behind the batches. Running backfill first, inserts waited up to 502 ms with month-sized batches.

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

codecov Bot commented Oct 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AlexeyShalaev
AlexeyShalaev merged commit 976a417 into master Oct 1, 2026
32 checks passed
@AlexeyShalaev
AlexeyShalaev deleted the docs/what-batch-rows-bounds branch October 1, 2026 20:45
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