Upcoming work pages appear to time out a lot
Bug #1692120 reported by
Mathieu Trudel-Lapierre
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
William Grant |
Bug Description
My personal upcomingwork page seems to time out a whole lot (but I also have lots of stuff on it).
https:/
For instance: (Error ID: OOPS-3462b9b41acbf8d5afb00ba372201498)
Related branches
lp:~wgrant/launchpad/upcoming-optimisation
- Colin Watson (community): Approve
-
Diff: 62 lines (+33/-7)1 file modifiedlib/lp/registry/model/person.py (+33/-7)
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → Critical |
tags: | added: lp-blueprints oops timeout |
Changed in launchpad: | |
assignee: | nobody → William Grant (wgrant) |
status: | Triaged → In Progress |
tags: |
added: qa-ok removed: qa-needstesting |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The offending query is:
SELECT DISTINCT SpecificationWo rkItem. assignee, SpecificationWo rkItem. date_created, SpecificationWo rkItem. deleted, SpecificationWo rkItem. id, SpecificationWo rkItem. milestone, SpecificationWo rkItem. sequence, SpecificationWo rkItem. specification, SpecificationWo rkItem. status, SpecificationWo rkItem. title product = Product.id rkItem ON SpecificationWo rkItem. specification = Specification.id SpecificationWo rkItem. milestone, Specification. milestone) = Milestone.id product IS NULL information_ type IN (1,
2) (Specification. access_ grants) &&
(SELECT ARRAY_AGG( TeamParticipati on.team)
FROM TeamParticipation
WHERE TeamParticipati on.person = 1557381), FALSE) ARRAY[( Specification. access_ policy) ]&&
(SELECT ARRAY_AGG( AccessPolicyGra nt.policy)
FROM AccessPolicyGrant
JOIN TeamParticipation ON TeamParticipati on.team = AccessPolicyGra nt.grantee
WHERE TeamParticipati on.person = 1557381), FALSE)) dateexpected <= E'2017-11-15' dateexpected >= E'2017-05-19' rkItem. deleted = FALSE orkItem. assignee IN (1557381) assignee IN (1557381)) rkItem. id;
FROM Specification
LEFT JOIN Product ON Specification.
JOIN SpecificationWo
JOIN Milestone ON COALESCE(
WHERE (Specification.
OR Product.active = TRUE)
AND (Specification.
OR COALESCE(
OR COALESCE(
AND Milestone.
AND Milestone.
AND SpecificationWo
AND (SpecificationW
OR Specification.
ORDER BY SpecificationWo
I can't get good EXPLAIN ANALYZE output from dogfood on this since the database dump is a bit too old (and when I tweak the dates dogfood is an order of magnitude faster, so I don't want to put much faith in the results), so I'll have to wait until a weekday when we can get a sysadmin to try it on production.