Comment 3 for bug 512262

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 512262] Re: Displaying bug patch badges in listing is inefficient, causes many timeouts

On Mon, Jan 25, 2010 at 10:15:25AM -0000, Tom Berger wrote:
> ~jml, who also gets to say "i told you so", having spotted the problem
> in review, tells me that may be a good example of how this can be
> optimized is found in lib/lp/code/browser/branchlisting.py

I would suggest looking in lib/lp/bugs/browser/bugtask.py insted, to see
how it's done for the rest of the badges in the bug listings. Search for
BugListingBatchNavigator. It should be easy to extend it to handle
patches as well.