Project:+index : Project page timeout on qastaging with 11s of SQL

Bug #668047 reported by Gavin Panella
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Edwin Grubbs

Bug Description

OOPS-1762QS22

This happened several times on https://qastaging.launchpad.net/malone, the recovered. Perhaps the long query is overly broad and suffers under load or when the cache is cold. It has some EXISTS clauses in it that are probably a good first place to look.

Branch: launchpad-rev-11812
Revno: 11812
SQL time: 11159 ms
Non-sql time: 774 ms
Total time: 11933 ms
Statement Count: 65

1 10007.0 1 SQL-launchpad-main-slave SELECT DistributionSourcePackageCache.archive, DistributionSourcePackageCache.binpkgdescriptions, DistributionSourcePackageCache.binpkgnames, DistributionSourcePackageCache.binpkgsummaries, DistributionSourcePackageCache.changelog, DistributionSourcePackageCache.distribution, DistributionSourcePackageCache.id, DistributionSourcePackageCache.name, DistributionSourcePackageCache.sourcepackagename, SourcePackageName.id, SourcePackageName.name, rank(fti, ftq('malone')) AS rank FROM DistributionSourcePackageCache JOIN SourcePackageName ON DistributionSourcePackageCache.sourcepackagename = SourcePackageName.id WHERE DistributionSourcePackageCache.distribution = 1 AND DistributionSourcePackageCache.archive IN (1, 534) AND (DistributionSourcePackageCache.fti @@ ftq('malone') OR DistributionSourcePackageCache.name ILIKE '%' || 'malone' || '%') AND NOT EXISTS ( SELECT 1 FROM Packaging WHERE Packaging.sourcepackagename = SourcePackageName.id ) AND EXISTS ( SELECT 1 FROM SourcePackageRelease spr JOIN SourcePackagePublishingHistory spph ON spph.sourcepackagerelease = spr.id WHERE spr.sourcepackagename = SourcePackageName.id AND spph.distroseries = 106 ) ORDER BY rank DESC LIMIT 8 OFFSET 0

Related branches

Gavin Panella (allenap)
tags: added: timeout
Curtis Hovey (sinzui)
Changed in launchpad-registry:
status: New → Triaged
importance: Undecided → High
milestone: none → series-future
milestone: series-future → 10.11
summary: - Project page timeout on qastaging with 11s of SQL
+ Project:+index : Project page timeout on qastaging with 11s of SQL
description: updated
Changed in launchpad-registry:
assignee: nobody → Edwin Grubbs (edwin-grubbs)
Changed in launchpad-registry:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
tags: added: qa-needstesting
Changed in launchpad-registry:
status: In Progress → Fix Committed
Changed in launchpad-registry:
status: Fix Committed → Fix Released
tags: added: qa-ok
removed: qa-needstesting timeout
Revision history for this message
Henning Eggers (henninge) wrote :

Cool! I did not know that this was a separate bug you were working on. Works fine now, thanks ;)

tags: added: timeout
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.