#16647: Default filters: pacth to add QuerySet support for random plus a new
shuffle filter
-------------------------------------+-------------------------------------
Reporter: h3 | Owner: nobody
Type: New | Status: new
feature | Component: Template system
Milestone: | Severity: Normal
Version: 1.3 | Keywords:
Resolution: | Has patch: 1
Triage Stage: Design | Needs tests: 1
decision needed | Easy pickings: 0
Needs documentation: 1 |
Patch needs improvement: 1 |
UI/UX: 0 |
-------------------------------------+-------------------------------------
Comment (by anonymous):
order_by('?') *does* cause an additional query, if the queryset has
already been evaluated. order_by() is handled by the database.
If the queryset has already been evaluated, you could just transform it to
a list and perform the ordinary random/shuffle operations on that, I
suppose... would that be faster?
--
Ticket URL: <https://code.djangoproject.com/ticket/16647#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.