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

Bug #675595 reported by Abel Deuring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
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.

Tags: lp-bugs qa-ok

Related branches

Deryck Hodge (deryck)
Changed in malone:
importance: Undecided → High
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in malone:
milestone: none → 10.12
tags: added: qa-needstesting
Changed in malone:
status: In Progress → Fix Committed
Abel Deuring (adeuring)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in malone:
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.