On 30 Jul 2013, at 2:06 PM, Florian Apolloner wrote: > How do you think such support would look like? For negative indices you'd > have to know the size of the resultset to be able to do "limit somthing > offset length-your_negative_index" -- this doesn't seem to make any sense for > an ORM. You can always do list(qs)]:-1] though…
It seems like the first comment in the ticket answers that question. Django would reverse the sense of the query's ordering clause and use a simple LIMIT. If there isn't an ordering clause in the query, then I agree it makes no sense to do any indexing other than [0:N]. ubernostrum's comment in the ticket makes it sound as if there is some explicit reasoning behind this, though, that's at least three years old. We can speculate, but does anyone know what that reasoning actually was? -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.