Author: lukeplant
Date: 2010-12-31 09:47:46 -0600 (Fri, 31 Dec 2010)
New Revision: 15122

Modified:
   django/trunk/docs/topics/db/optimization.txt
Log:
Some small fixes to DB optimization docs.

Modified: django/trunk/docs/topics/db/optimization.txt
===================================================================
--- django/trunk/docs/topics/db/optimization.txt        2010-12-31 14:38:19 UTC 
(rev 15121)
+++ django/trunk/docs/topics/db/optimization.txt        2010-12-31 15:47:46 UTC 
(rev 15122)
@@ -200,7 +200,7 @@
 
 If you are going to need other data from the QuerySet, just evaluate it.
 
-For example, assuming an Email class that has a ``body`` attribute and a
+For example, assuming an Email model that has a ``body`` attribute and a
 many-to-many relation to User, the following template code is optimal:
 
 .. code-block:: html+django
@@ -221,7 +221,8 @@
 
 It is optimal because:
 
- 1. Since QuerySets are lazy, this does no database if 'display_inbox' is 
False.
+ 1. Since QuerySets are lazy, this does no database queries if 'display_inbox'
+    is False.
 
  #. Use of ``with`` means that we store ``user.emails.all`` in a variable for
     later use, allowing its cache to be re-used.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to