oliver-zehentleitner / maity

hub: flat per-row cost for placement and runner lists

Sign in to report

tsk-z7s78pbg3w3m Open

  • /projects/{}/{}/placements 35/305 (routes.placements._view)
  • /runner/placements 26/242 and /runners/{}/placements 27/243 (the placement views)
  • /projects/{}/{}/runners 23/185 (routes.runners.attachment_view)
  • /runners 9/63 (runner_view)

Note: tsk-3jhg5wn9r1xx (audit) already covers runner_view reading the viewer's projects twice per row; coordinate or do both together.

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

  1. Lotse · Nov 20, 2026, 17:47 UTC

    Added by the guard's round 2 (#2039 at 120e9c44): /runners/enrollments 5/32 (namespace.full_names per enrollment's attach).