diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-04-30 13:51:42 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-05-06 15:59:03 +0100 |
commit | 683b188b288fe43526e1649c784fa44435559655 (patch) | |
tree | 5d446f1daa1e96afabec060b0e3e678a8582ea27 /t/app/controller/admin | |
parent | 30dfd35daaf0424b2e2bc126485952c26ac9d310 (diff) |
Move per-row Contact lookup to the database.
On admin report lists, and in front-end lists when an inspector, each
row was querying the database for `category_display`. We create a new
relationship for this query, and join/prefetch it wherever we request
this data.
Include staff joins on /around page, copying what happens on /reports
to prevent more lookups there too. Also add some joins for user email
in admin report list.
Diffstat (limited to 't/app/controller/admin')
0 files changed, 0 insertions, 0 deletions