Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 7b172de6fa4aa6da82211bae05a9388b0d96e12a 1 parent 8d3d5a3
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  docs/db-api.txt
View
3  docs/db-api.txt
@@ -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::
Please sign in to comment.
Something went wrong with that request. Please try again.