mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-27 16:49:34 +01:00
- Db.shareReads: within one read-only request, a Kysely SELECT with the same text and parameters is read once and handed out as copies; any write forgets them. The server runs every API GET in it. - Stuck items: one title query instead of one per item; liveness reads together. - Build tasks: batch PRs and item kinds read in one query each; artifacts, batches and the confidential check together. - Repo settings list: each repo's parts read together, four repos at a time; label plan and seen checks read their inputs together. - Decisions: toDecision starts its reads together; one decision and the item's decision read their rows through decisionPage; the list reads its counts alongside the page. - Needs: feedback, counts and stopped rows together; feedback items in one query. - Item page: a first load reads the stamp alongside the page, parts start as their inputs arrive; trace context, header and fingerprint read in one wave each; itemCore reuses its files and checks reads. - Settle memo: concurrent callers wait for one roles read. - scripts/page-bench.ts: route timings and round trips on a seeded Postgres through the latency proxy.