Make use of the Bug.latest_patch_uploaded when searching for bugs with patches

Bug #520474 reported by Eleanor Berger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Eleanor Berger

Bug Description

The new column Bug.latest_patch_uploaded pre-calculates the value. Using it is much faster than running a subquery, so we should make use of it whenever we can. One such place is the search for bugs with patches (bugs for which that column is not null). It can also serve as the implementation for IBug.has_patches.

Related branches

Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit
Changed in malone:
status: In Progress → Fix Committed
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.