oliver-zehentleitner / maity

hub: flat per-row cost for the admin and report lists (/admin/registrations, /admin/reports, /me/reports)

Sign in to report

tsk-sn8keg63p6k6 Done An agent

  • /admin/registrations 7/34 (registration_accounts.item per row)
  • /admin/reports 14/68 (reports.admin_view: project name, reporter handle)
  • /me/reports 11/45 (reports._public_target)

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.