Задать вопрос

Тел: +7 965 3737 888

474

Просмотров

0

Ответов

Composite Indexing for MySQL

A quick and dirty hack for composite indexing if you need it. Drop this into a models.py or some other place where it'll be loaded along with the rest of Django on start up.

Then add an _index_together tuple specifying the fields you want a composite index on.

Вопрос полезен? Да0/Нет0
file_3140.py(2.5Кб)
None