Comment 1 for bug 226535

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 226535] [NEW] BugTask.conjoined_master shouldn't use shortlist()

On Sun, May 04, 2008 at 03:56:03PM -0000, Graham Binns wrote:
> shortlist() is used in BugTask.conjoined_master to listify the BugTask's
> Bug's BugTasks sequence. If this warning is getting raised this often it
> should probably be changed to use list().

No, it shouldn't use list(); shortlist() is the right thing to use here,
since whenever getting an unknown (unbounded) number of things from the
db, we want to put a limit on the number of rows returned.

The right thing to do there is to increase the limit. You can specify
the limit when calling shortlist().