summaryrefslogtreecommitdiff
path: root/docs/db-api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/db-api.txt')
-rw-r--r--docs/db-api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/db-api.txt b/docs/db-api.txt
index 2a1f428ae7..cc235b79ed 100644
--- a/docs/db-api.txt
+++ b/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::