Kaydet (Commit) 7b172de6 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

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
üst 8d3d5a37
...@@ -511,6 +511,9 @@ like so:: ...@@ -511,6 +511,9 @@ like so::
Entry.objects.order_by('?') 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, To order by a field in a different table, add the other table's name and a dot,
like so:: like so::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment