On 15 Jul 11:31, Andy Doan wrote:
> On 07/13/2016 04:57 AM, Stephen Finucane wrote:
> > The way that reverse indexing of patches was implemented is broken.
> > At present, it will retrieve all patches in memory and return the
> > length from that data, then the slicing operation will then happen
> > without querying the DB and slice the results cached from the len()
> > evaluation. This is memory intensive, particularly for larger
> > instances.
> > 
> > Take advantage of Django's lazy loading to avoid this.
> > 
> > Signed-off-by: Stephen Finucane <[email protected]>
> > Suggested-by: Damien Lespiau <[email protected]>
> > ---
> Reviewed-by: Andy Doan <[email protected]>

Merged.
_______________________________________________
Patchwork mailing list
[email protected]
https://lists.ozlabs.org/listinfo/patchwork

Reply via email to