Distribution:+bugs timeouts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Robert Collins |
Bug Description
We've improved the performance of the search, but that has just reduced the frequency of timeouts, it still times out.
OOPS-1868M2484
There are two repeated queries that combine to use up 3.5 seconds of time:
2 16 1817 113 1704 SQL-launchpad-
SELECT COUNT(*)
FROM BugTask
JOIN Bug ON BugTask.bug = Bug.id
WHERE Bug.id = BugTask.bug
AND BugTask.
AND ((BugTask.status = $INT)
OR (BugTask.status = $INT)
OR (BugTask.status = $INT)
OR (BugTask.status = $INT)
OR (BugTask.status = $INT)
OR (BugTask.status = $INT))
AND Bug.duplicateof IS NULL
AND (Bug.private = FALSE
OR EXISTS
(SELECT BugSubscription.bug
FROM BugSubscription,
WHERE TeamParticipati
AND TeamParticipati
AND BugSubscription.bug = Bug.id
UNION SELECT BugTask.bug
FROM BugTask,
WHERE TeamParticipati
AND TeamParticipati
AND BugTask.bug = Bug.id))
4 14 2305 164 2141 SQL-launchpad-
SELECT COUNT(*)
FROM BugTask
JOIN Bug ON BugTask.bug = Bug.id
WHERE Bug.id = BugTask.bug
AND ((BugTask.status = $INT)
OR (BugTask.status = $INT)
OR (BugTask.status = $INT)
OR (BugTask.status = $INT)
OR (BugTask.status = $INT)
OR (BugTask.status = $INT))
AND BugTask.milestone = $INT
AND Bug.duplicateof IS NULL
AND (Bug.private = FALSE
OR EXISTS
(SELECT BugSubscription.bug
FROM BugSubscription,
WHERE TeamParticipati
AND TeamParticipati
AND BugSubscription.bug = Bug.id
UNION SELECT BugTask.bug
FROM BugTask,
WHERE TeamParticipati
AND TeamParticipati
AND BugTask.bug = Bug.id))
Related branches
- Stuart Bishop (community): Approve
-
Diff: 127 lines (+34/-19)4 files modifiedlib/lp/bugs/browser/bugtarget.py (+27/-14)
lib/lp/bugs/browser/bugtask.py (+3/-4)
lib/lp/bugs/interfaces/bugtask.py (+3/-0)
lib/lp/bugs/model/bugtask.py (+1/-1)
Changed in launchpad: | |
status: | Fix Committed → In Progress |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
explainable by series and milestone targeted bugs; probably setting a lower limit for /all/ ubuntu wide bug search performance.