More timeouts on +templates page

Bug #475435 reported by Данило Шеган
6
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://translations.edge.launchpad.net/ubuntu/karmic/+templates

OOPS-1403EC21 and OOPS-1403EC22

Related branches

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

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 TranslationTemplateItems 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.

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

OOPS-1529A2791, OOPS-1529C1970, OOPS-1529D195, OOPS-1529D197, OOPS-1529D2726
OOPS-1529C2396
OOPS-1529EA597, OOPS-1529EA598, OOPS-1529EA599, OOPS-1529EC644, OOPS-1529ED635

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

A UI improvement to this page made over 10.02 added a count of translatable messages to the templates listing. However instead of using the cached POTemplate.messageCount it used POTemplate.getPOTMsgSetCount, which is normally only used for recomputing statistics (and besides, was rather suboptimal). So some easy fixes there; fragment caching is still worth it though.

Changed in rosetta:
status: Triaged → In Progress
assignee: nobody → Jeroen T. Vermeulen (jtv)
milestone: none → 10.03
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Turns out this was not urgent after all: these pages are not in use yet. Still, I've got a few cleanups.

Changed in rosetta:
assignee: Jeroen T. Vermeulen (jtv) → nobody
status: In Progress → Triaged
milestone: 10.03 → none
Adi Roiban (adiroiban)
tags: added: oops
Adi Roiban (adiroiban)
Changed in rosetta:
assignee: nobody → Adi Roiban (adiroiban)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in rosetta:
milestone: none → 10.08
tags: added: qa-needstesting
Changed in rosetta:
status: In Progress → Fix Committed
Revision history for this message
Данило Шеган (danilo) wrote :

The fix here does improve a situation a lot. The page finally renders *sometimes* though it still times out a lot. I've filed a new bug 608349 for the new timeouts (they behave differently in that only non-SQL time is to blame now).

tags: added: qa-bad
removed: qa-needstesting
Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 475435] Re: More timeouts on +templates page

On Wed, Jul 21, 2010 at 6:33 PM, Данило Шеган <email address hidden> wrote:
> The fix here does improve a situation a lot. The page finally renders
> *sometimes* though it still times out a lot. I've filed a new bug 608349
> for the new timeouts (they behave differently in that only non-SQL time
> is to blame now).

Note that a trailing sql query shows as non-sql time sometimes.

-Rob

Revision history for this message
Данило Шеган (danilo) wrote :

У сре, 21. 07 2010. у 19:42 +0000, Robert Collins пише:
> Note that a trailing sql query shows as non-sql time sometimes.

That bug should be fixed already. And no, this is non-sql time. We know
mostly where it is already (fmt:url and TAL rendering). See the
follow-up bug for details.

Changed in rosetta:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.