Person:+archivesubscriptions timeouts (late evaluation)

Bug #777344 reported by Cody A.W. Somerville
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Critical
Abel Deuring

Bug Description

https://launchpad.net/%7Ereprepro/+archivesubscriptions

OOPS-1950CQ433

The culprit is 7 seconds running repeated 100ms queries. Making the queries 20% faster or more (or doing one query thats slightly slower but not repeated) should solve this.

4 61 6994 114 6880 SQL-launchpad-main-master
SELECT $INT
FROM
  (SELECT ArchiveSubscriber.archive, ArchiveSubscriber.cancelled_by, ArchiveSubscriber.date_cancelled, ArchiveSubscriber.date_created, ArchiveSubscriber.date_expires, ArchiveSubscriber.description, ArchiveSubscriber.id, ArchiveSubscriber.registrant, ArchiveSubscriber.status, ArchiveSubscriber.subscriber
   FROM ArchiveSubscriber
   WHERE ArchiveSubscriber.subscriber IN
       (SELECT TeamParticipation.team
        FROM ArchiveSubscriber, TeamParticipation
        WHERE TeamParticipation.person = $INT
          AND TeamParticipation.team = ArchiveSubscriber.subscriber)
     AND ArchiveSubscriber.archive = $INT
     AND ArchiveSubscriber.status = $INTLIMIT $INT) AS "_tmp" LIMIT $INT

Related branches

Changed in launchpad:
status: New → Triaged
importance: Undecided → Critical
summary: - /people/+me/+archivesubscriptions will timeout with many subscriptions
+ Person:+archivesubscriptions timeouts (late evaluation)
description: updated
Abel Deuring (adeuring)
Changed in launchpad:
assignee: nobody → Abel Deuring (adeuring)
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
milestone: none → 11.05
tags: added: qa-needstesting
Changed in launchpad:
status: In Progress → Fix Committed
William Grant (wgrant)
tags: added: qa-ok
removed: qa-needstesting
William Grant (wgrant)
Changed in launchpad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.