From 7b172de6fa4aa6da82211bae05a9388b0d96e12a Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 15 Sep 2007 17:30:23 +0000 Subject: [PATCH] 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 --- docs/db-api.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/db-api.txt b/docs/db-api.txt index 038cdc8613c..5ce0aa01e7e 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::