mirror of https://github.com/django/django.git
Reference Meta.index_together in DB performance guide.
This commit is contained in:
parent
51ed1ef1d5
commit
9dc45efeba
|
@ -38,7 +38,9 @@ Use standard DB optimization techniques
|
||||||
|
|
||||||
* Indexes. This is a number one priority, *after* you have determined from
|
* Indexes. This is a number one priority, *after* you have determined from
|
||||||
profiling what indexes should be added. Use
|
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.
|
* Appropriate use of field types.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue