oliver-zehentleitner / maity
hub: flat per-row cost for GET /projects (50 statements for 3 rows, 347 for 30)
tsk-ds2t513zcem7 Open
- /projects 50/347 (restricted fields, confirmations per project)
The largest one; it also feeds the dashboard's project list.
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): GET /me (key projects) 25/106, inbox.open_requests per project. It's the same per-project pattern as /projects; fix the two together.