Changes between Initial Version and Version 1 of Ticket #16290


Ignore:
Timestamp:
Jun 17, 2011, 4:33:02 PM (13 years ago)
Author:
Ramiro Morales
Comment:

Replying to anonymous:

[...] Or atleast Django should explain the solution of forcing evaluating, and the slowdowns, that might have.(Have no idea if that's the case.)

It already does (see the Performance considerations box):

https://docs.djangoproject.com/en/1.3/ref/models/querysets/#in

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16290

    • Property Resolutioninvalid
    • Property Status newclosed
  • Ticket #16290 – Description

    initial v1  
    33"This version of MySQL doesn't yet support'LIMIT & IN/ALL/ANY/SOME subquery'"
    44
     5{{{
    56objects = Model.objects.filter(key=value).values_list('id', flat=True)[:4]
    67Model.objects.filter(id!__in=objects)
     8}}}
    79
    810Of course this example makes no sense.
Back to Top