Files
Brennan Benson 634fd4dcd1 perf(journal): sweep retired epochs only for chats that can hold them (#43892)
* perf(journal): sweep retired epochs only for chats whose head moved

The per-minute retired-epoch sweep paged every ready chat head and sent each one
through a writer prune, even when nothing was retired. A pending set filled by
triggers on head epoch changes (and by fork stages) now limits the sweep to chats
that can hold retired rows; an idle store costs one empty read per pass.

* fix(journal): track items written beside a ready head with a trigger, re-seed when any pending trigger is missing

* style: format retire-pending test

* fix(journal): bound each retired pass at the highest key pending when it began

* docs(journal): note that a changed retire trigger needs a new name

* test(journal): cover the pass bound, generation settle, and live fork rows

* chore(ratchets): record the retire-pending SQL that runs on the journal worker; prune the read file's allowance

* style: format retire-pending test

* chore(ratchets): record the retire-pending SQL that runs on the journal SQL worker

* fix(journal): pass the transaction runner into the retire-pending setup so it imports no journal database module

* fix(journal): don't bound the first retired-heads page below by an empty session id

* perf(journal): keep the indexed cursor bound on later retired-heads pages
2026-11-18 10:19:48 -08:00
..
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00
2026-11-18 03:28:35 -05:00