In general, is there a type of Model query you look for to optimize by indexing a field (db_index=True)?
In case it’s relevant: I’m using MySQL.
Elaboration:
Although I appreciate the responses already given. I was more looking for advice such as this one from a colleague:
You should definitely index the fields in your default ordering and any field you use for filtering.
Think that about covers it?
1 Answer