More timeouts on +templates page
Bug #475435 reported by
Данило Шеган
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Adi Roiban |
Bug Description
Follow-up bug on bug 461818. When visiting a page like
https:/
OOPS-1403EC21 and OOPS-1403EC22
Related branches
lp://qastaging/~adiroiban/launchpad/bug-475435
- Данило Шеган (community): Approve
-
Diff: 300 lines (+74/-58)5 files modifiedlib/canonical/launchpad/security.py (+15/-7)
lib/lp/translations/browser/potemplate.py (+6/-7)
lib/lp/translations/model/potemplate.py (+1/-1)
lib/lp/translations/stories/standalone/xx-series-templates.txt (+30/-22)
lib/lp/translations/templates/object-templates.pt (+22/-21)
Changed in rosetta: | |
status: | Triaged → In Progress |
assignee: | nobody → Jeroen T. Vermeulen (jtv) |
milestone: | none → 10.03 |
Changed in rosetta: | |
assignee: | Jeroen T. Vermeulen (jtv) → nobody |
status: | In Progress → Triaged |
milestone: | 10.03 → none |
tags: | added: oops |
Changed in rosetta: | |
assignee: | nobody → Adi Roiban (adiroiban) |
status: | Triaged → In Progress |
Changed in rosetta: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I can't get to this page at all at the moment. The problem seems to be mostly non-SQL time, so we could use some profiling on the app server.
The query log looks very different today from when this bug first came up: we seem to count the POTMsgSets and Languages connected to a template (through TranslationTemp lateItems and POFiles, respectively). Secondary to that we're also querying a lot of Persons. These queries could easily be made to run faster—there's no need why POTMsgSet and Language should be in those queries at all. But that's not going to help the non-SQL time, and these are very fast queries. Batching them would do more, but whether that would address the main source of non-SQL time would be just a guess.
One thing we *can* tell from the query log is that the non-SQL time is interspersed seemingly randomly through the rendering of the templates list. And that makes this a perfect candidate for TAL fragment caching.