Browse Source

Reference Meta.index_together in DB performance guide.

Ramiro Morales 11 years ago
parent
commit
9dc45efeba
1 changed files with 3 additions and 1 deletions
  1. 3 1
      docs/topics/db/optimization.txt

+ 3 - 1
docs/topics/db/optimization.txt

@@ -38,7 +38,9 @@ Use standard DB optimization techniques
 
 * Indexes. This is a number one priority, *after* you have determined from
   profiling what indexes should be added. Use
-  :attr:`django.db.models.Field.db_index` to add these from Django.
+  :attr:`django.db.models.Field.db_index` or
+  :attr:`Meta.index_together <django.db.models.Options.index_together>` to add
+  these from Django.
 
 * Appropriate use of field types.