timeout PersonSet:CollectionResource:#people:findTeam
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Critical
|
William Grant |
Bug Description
The query times out trying to match ambiguous or very common names, for example, "ubuntu-" or "r-"
PATH_INFO: /1.0/people
QUERY_STRING: text=%22ubuntu-
memo: 75
text: "ubuntu-"
ws.size: 75
ws.start: 75
These are the two slow queries, note that we get the count, then get the data :(
12. 113 1162ms SQL-main-master
SELECT *
FROM (
(SELECT Person.description,
FROM EmailAddress,
WHERE ((Person.visibility = 1)
OR ( TeamParticipati
AND TeamParticipati
AND NOT (Person.teamowner IS NULL)
AND Person.merged IS NULL
AND EmailAddress.person = Person.id
AND LOWER(EmailAddr
UNION
(SELECT Person.description,
FROM Person,
WHERE ((Person.visibility = 1)
OR ( TeamParticipati
AND TeamParticipati
AND NOT (Person.teamowner IS NULL)
AND Person.merged IS NULL
AND (Person.fti @@ ftq(u'ubuntu-')))) AS "_1881"
ORDER BY person_
OFFSET 75
13. 2035 1170ms SQL-main-master
SELECT COUNT(*)
FROM (
(SELECT Person.description,
FROM EmailAddress,
WHERE ((Person.visibility = 1)
OR ( TeamParticipati
AND TeamParticipati
AND NOT (Person.teamowner IS NULL)
AND Person.merged IS NULL
AND EmailAddress.person = Person.id
AND LOWER(EmailAddr
UNION
(SELECT Person.description,
FROM Person,
WHERE ((Person.visibility = 1)
OR ( TeamParticipati
AND TeamParticipati
AND NOT (Person.teamowner IS NULL)
AND Person.merged IS NULL
AND (Person.fti @@ ftq(u'ubuntu-')))) AS "_tmp"
Related branches
- Steve Kowalik (community): Approve (code)
-
Diff: 426 lines (+62/-217)2 files modifiedlib/lp/registry/model/person.py (+31/-39)
lib/lp/registry/vocabularies.py (+31/-178)
tags: | added: 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 |
Fixed in stable r16320 <http:// bazaar. launchpad. net/~launchpad- pqm/launchpad/ stable/ revision/ 16320>.