Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Small corrections/improvements to DB optimization docs.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2cf21d994df1cfed4d35f5f338c97edaffa4ba8a 1 parent f92a21d
@spookylukey spookylukey authored
Showing with 3 additions and 7 deletions.
  1. +3 −7 docs/topics/db/optimization.txt
10 docs/topics/db/optimization.txt
@@ -5,7 +5,7 @@ Database access optimization
Django's database layer provides various ways to help developers get the most
-out of their databases. This documents gathers together links to the relevant
+out of their databases. This document gathers together links to the relevant
documentation, and adds various tips, organized under an number of headings that
outline the steps to take when attempting to optimize your database usage.
@@ -108,9 +108,8 @@ Do database work in the database rather than in Python
For instance:
-* At the most basic level, use :ref:`filter and exclude <queryset-api>` to
- filtering in the database to avoid loading data into your Python process, only
- to throw much of it away.
+* At the most basic level, use :ref:`filter and exclude <queryset-api>` to do
+ filtering in the database.
* Use :ref:`F() object query expressions <query-expressions>` to do filtering
against other fields within the same model.
@@ -245,9 +244,6 @@ methods of individual instances, which means that any custom behaviour you have
added for these methods will not be executed, including anything driven from the
normal database object :ref:`signals <ref-signals>`.
-Don't retrieve things you already have
Use foreign key values directly

0 comments on commit 2cf21d9

Please sign in to comment.
Something went wrong with that request. Please try again.