djangosnippets.org: Latest snippets tagged with 'composite-indexing'https://djangosnippets.org/tags/composite-indexing/2009-05-27T23:23:30.477047-05:00Composite Indexing for MySQL
2009-05-27T23:23:30.477047-05:00fongandrewhttps://djangosnippets.org/snippets/1534/<p>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.</p>
<p>Then add an _index_together tuple specifying the fields you want a composite index on.</p>
Freely redistributable