On Fri, Apr 25, 2008 at 2:17 PM, Patrick J. Anderson
<[EMAIL PROTECTED]> wrote:
>  Well, then you could also use:
>
>         foo = MyModel.objects.all()[-1]
>
>  Wouldn't '_Queryset.latest()' be faster than slicing a big queryset list?

It's slicing on the RDBMS side unless you already evaluated the query.

-- 
Patryk Zawadzki
PLD Linux Distribution

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to