New bug listings get length of collection twice
Bug #901124 reported by
William Grant
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Deryck Hodge |
Bug Description
As seen in OOPS-22be944a946b54a7e06a56a3651a6a40, the beta bug listings issue the expensive COUNT(*) query twice: once to populate the model cache, and once to render the batchnav template.
We should ideally not execute it at all, and can't reasonably do it more than once.
Related branches
lp:~deryck/launchpad/avoid-extra-buglist-count-901124
- Abel Deuring (community): Approve
- j.c.sackett (community): Approve
-
Diff: 27 lines (+7/-3)1 file modifiedlib/lp/bugs/browser/bugtask.py (+7/-3)
Changed in launchpad: | |
assignee: | nobody → Deryck Hodge (deryck) |
Changed in launchpad: | |
status: | Triaged → In Progress |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed in stable r14559 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 14559>.