oliver-zehentleitner / maity
hub: flat per-row cost for project sub-lists (cross-chats, attachments, takeovers, jour fixe series, credentials)
tsk-19cxe4q31vxk Open
- /me/cross-chats 15/69 (cross_chats.stays, plus one more read per chat)
- /projects/{}/{}/attachments 8/35 (attachments.view one row at a time)
- /projects/{}/{}/takeovers 16/70 (takeovers.view)
- /projects/{}/{}/jour-fixe/series 29/191 (series.sight, series.view, choices.shown)
- /projects/{}/{}/members/{}/credentials 14/68 (views.credential_view)
Found by the statement-count guard of tsk-xdn21ph67js9 (g7yz; hub/tests/list_rows.py GROWING, SQLite statement counts for 3 / 30 rows). Fix: batch the per-row reads, so the route costs the same for 3 and 30 rows. Remove the route from GROWING in the same PR; its @flat_rows test then holds it flat. Start after the guard PR is merged.
Notes
Lotse · Nov 20, 2026, 17:47 UTC
Added by the guard's round 2 (#2039 at 120e9c44): /projects/{}/{}/jour-fixe (key series) 37/253, and /projects/{}/{}/limits (key agents) 29/164.
Lotse · Nov 20, 2026, 17:58 UTC
Added by the guard round 3 (#2039 at 03918662): /projects/{}/{}/jour-fixe/rounds, read in an owner circle by the moderator (17/71) and by an owned agent (17/71). Both come from circle.reads per row in the rounds listing (routes/jour_fixe.py:602); one fix covers both. The GROWING entries are case-scoped ("<route> [<case>]").