Changes between Initial Version and Version 1 of Ticket #16290


Ignore:
Timestamp:
06/17/11 16:33:02 (4 years ago)
Author:
ramiro
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 Status changed from new to closed
    • Property Patch needs improvement unset
    • Property Needs tests unset
    • Property Needs documentation unset
    • Property Resolution changed from to invalid
  • 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