diff --git a/store/src/core/chunks.ts b/store/src/core/chunks.ts index cf20ddc..d5d4d59 100644 --- a/store/src/core/chunks.ts +++ b/store/src/core/chunks.ts @@ -1,4 +1,4 @@ -// The most statements in one request, as `docs/specs/renders.md` -> Requests says. It holds 19,600 renders, so a batch of up to that many costs one. +// The most statements in one request, as `docs/specs/renders.md` -> Requests says. With a statement per 1,000 stories to key them, it holds about 18,600 renders, so a batch of up to that many costs one. export const STATEMENTS_PER_REQUEST = 400; /** Splits items into groups of at most `size`, in order. */ diff --git a/store/test/render-batches.test.ts b/store/test/render-batches.test.ts index df4caff..d5e2b2d 100644 --- a/store/test/render-batches.test.ts +++ b/store/test/render-batches.test.ts @@ -270,7 +270,7 @@ describe("RenderBatches", () => { }); describe("crashes partway", () => { - // 19,600 renders fill the 400 statements of one request, so this takes two. + // 20 statements key the stories and 380 hold 18,620 renders, filling the 400 statements of one request, so this takes two. const RENDERS = 20_000; const items: RecordedRender[] = Array.from({ length: RENDERS }, (_, i) => rendered(`story-${i}`, (i % 40) + 1),