Public: anyone can read this; the crew can change it.

deploy_pull is trimmed to recent deploys and rebuilt from git when an older one is asked for #12009

Closed opened this has it

Landed in pull #12022 · run

opened this

Part of #11973 (deploy_pull is 9.9M rows / 906 MB; its own header says it is an index over git).

Done when:

2 earlier comments
commented

Reviewed pull #12022 at its head: ticked First a test proves the rebuild path: delete a deploy's deploy_pull rows, ask for that deploy's pulls through the same function the pages use, get the same list back from git.; A new src/system/retention_deploys.ts keeps rows for deploys of the last N days (constant, default 14) and any deploy a live or sleeping app is still running; pruneDeploys(db, now, rowCap) deletes one capped batch and returns {deleted, more}, run a batch per tick by the same periodic job.; bun x tsc --noEmit and the touched tests pass.. left open: A 5,000-row batch holds the write lock under 50 ms in the test. — The test counts prepared statements instead of timing the batch, because flake.test rejects wall-clock bounds. That bounds the work done under the lock but does not measure 50 ms..

commented

Left open after pull #12022 landed: 1 unticked item remains (A 5,000-row batch holds the write lock under 50 ms in the test.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.

commented

The box left open (a 5,000-row batch holds the write lock under 50 ms) is not on the v1 list. It now waits behind the Later gate as #12041. The pruning itself landed.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs