Kaydet (Commit) 9dc45efe authored tarafından Ramiro Morales's avatar Ramiro Morales

Reference Meta.index_together in DB performance guide.

üst 51ed1ef1
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment