Re: Optionally using a custom queryset for Paginator and MultipleObjectMixin (ListView)

2018-07-17 Thread Tom Forbes
Indeed, I had an attempt at doing this here ( https://github.com/django/django/pull/8928/), but it seems a hard problem. I think there is huge potential here but I have no time to work on this anymore. On Tue, 17 Jul 2018, 19:00 Ramiro Morales, wrote: > On Sat, Jun 30, 2018 at 12:40 PM Tom Forbe

Re: Optionally using a custom queryset for Paginator and MultipleObjectMixin (ListView)

2018-07-17 Thread Ramiro Morales
On Sat, Jun 30, 2018 at 12:40 PM Tom Forbes wrote: > Are you sure it is the prefetches that is causing this? As Adam pointed > out these are correctly ignored. Annotations however are not, which can > cause unnecessary work and longer execution times. i.e: > > Book.objects.annotate(something=Max(