mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed #5267 -- Documented that order_by('?') queries can be slow
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
8d3d5a37b4
commit
7b172de6fa
@ -511,6 +511,9 @@ like so::
|
||||
|
||||
Entry.objects.order_by('?')
|
||||
|
||||
Note: ``order_by('?')`` queries may be expensive and slow, depending on the
|
||||
database backend you're using.
|
||||
|
||||
To order by a field in a different table, add the other table's name and a dot,
|
||||
like so::
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user