BranchMergeProposal:+index timeouts - slow query plan
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Critical
|
Unassigned |
Bug Description
OOPS-1910H1993
https:/
55. 1171 9986ms SQL-launchpad-
Revision.id,
FROM BranchRevision,
Revision
WHERE BranchRevision.
AND BranchRevision.
AND BranchRevision.
AND Revision.
AND Revision.
ORDER BY BranchRevision.
-------
Sort (cost=52988.
Sort Key: branchrevision.
Sort Method: quicksort Memory: 25kB
-> Hash Join (cost=25279.
Hash Cond: (branchrevision
-> Index Scan using revision_
-> Hash (cost=25155.
-> Index Scan using revision_
Total runtime: 23147.594 ms
(12 rows)
Time: 23283.795 ms
This depends on hot disk cache to perform well - we're bringing back 10K rows from both tables to do the date filtering.
It may be possible to change the query, or we could pull revision_date into branchrevision