BugTaskSet.getAssignedMilestonesFromSearch() can call BugTaskSet._search() directly and retrieve the milestones with one SQL query instead of two

Bug #675595 reported by Abel Deuring on 2010-11-15
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Abel Deuring

Bug Description

At present, BugTaskSet.getAssignedMilestonesFromSearch() calls BugTaskSet.serach() in order to retrieve milestone IDs; these IDs are then used to retrieve the milestone objects in another query.

BugTaskSet._search() allows us to prejoin and retrieve Milestone directly in the first query.

Related branches

Deryck Hodge (deryck) on 2010-11-23
Changed in malone:
importance: Undecided → High
Changed in malone:
milestone: none → 10.12
tags: added: qa-needstesting
Changed in malone:
status: In Progress → Fix Committed
Abel Deuring (adeuring) on 2010-11-25
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui) on 2010-12-08
Changed in malone:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers