distribution:+bugs timeout searching for bugs by component
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
Robert Collins |
Bug Description
Another search timeout, but not high-offset this time.
29 SELECT BugTask.assignee, BugTask.bug, BugTask.bugwatch, BugTask.
GET: 29 Robots: 0 Local: 0
29 https:/
OOPS-1892A158, OOPS-1892B1957, OOPS-1892B587, OOPS-1892C2069, OOPS-1892D1181
Branch: launchpad-rev-12515
Revno: 12515
SQL time: 16970 ms
Non-sql time: 698 ms
Total time: 17668 ms
Statement Count: 21
QUERY_STRING: field.searchtex
REMOTE_ADDR: 91.189.89.30
REQUEST_METHOD: GET
SCRIPT_NAME:
SERVER_NAME: soybean
SERVER_PORT: 9031
SERVER_PROTOCOL: HTTP/1.0
SERVER_SOFTWARE: zope.server.http (HTTP)
assignee_option: any
field.assignee:
field.bug_
field.bug_contact:
field.bug_reporter:
field.component: 3
field.component
field.has_cve.used:
field.has_
field.has_
field.omit_dupes: on
field.omit_
field.searchtext:
field.status: [u'New']
field.status_
field.subscriber:
field.tag:
orderby: -importance
search: Search
18. 2213 14919ms SQL-launchpad-
SELECT BugTask.assignee,
BugTask.bug,
BugTask.id,
FROM BugTask
JOIN Bug ON BugTask.bug = Bug.id,
WHERE Bug.id = BugTask.bug
AND BugTask.
AND ((BugTask.status = 10))
AND Bug.duplicateof IS NULL
AND BugTask.
AND SourcePackageRe
AND SourcePackagePu
AND SourcePackagePu
AND SourcePackagePu
AND SourcePackagePu
AND Bug.private = FALSE
ORDER BY BugTask.importance DESC, BugTask.id LIMIT 76
OFFSET 0
-------
Limit (cost=0.
-> Nested Loop (cost=0.
-> Nested Loop (cost=0.
-> Nested Loop (cost=0.
-> Index Scan using securesourcepac
-> Index Scan using bug_pkey on bug (cost=0.00..2.72 rows=1 width=741) (actual time=0.033..0.033 rows=0 loops=761)
Total runtime: 149141.444 ms
(15 rows)
Related branches
- Tim Penhey (community): Approve (code)
- Steve Kowalik (community): Approve (code*)
-
Diff: 149 lines (+33/-24)4 files modifiedlib/lp/bugs/doc/checkwatches.txt (+1/-1)
lib/lp/bugs/model/bugtask.py (+28/-19)
lib/lp/bugs/model/tests/test_bugsubscriptioninfo.py (+3/-3)
versions.cfg (+1/-1)
description: | updated |
summary: |
- distribution:+bugs timeout + distribution:+bugs timeout searching for bugs by component |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
We can generate all spn's needed in this query by lease.sourcepac kagename from SourcePackagePu blishingHistory , SourcePackageRe lease where SourcePackageRe lease.id = SourcePackagePu blishingHistory .sourcepackager elease blishingHistory .distroseries = 106 blishingHistory .archive IN (1,
534) blishingHistory .component IN ('3') blishingHistory .status = 2;
select SourcePackageRe
AND SourcePackagePu
AND SourcePackagePu
AND SourcePackagePu
AND SourcePackagePu
and its tolerably fast:
(14134 rows)
Time: 342.589 ms
I'll see about a more constrained join