summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-09-15 17:30:23 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-09-15 17:30:23 +0000
commit7b172de6fa4aa6da82211bae05a9388b0d96e12a (patch)
tree3d81054ffbee18258a4598ba5f457fb1c4c4f85f /docs
parent8d3d5a37b440c8b813d20d611ed957e997e94671 (diff)
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
Diffstat (limited to 'docs')
-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 038cdc8613..5ce0aa01e7 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::