When we should define db_index=True on model fields?
I'm trying to optimize the application & wanted to learn more about db_index in which conditions we should use it?
The documentation says that using db_index=True on model fields is to faster the lookups with slightly disadvantages with storage and memory.
Should we use db_index=True only on those fields which has unique values like the primary field id? what happens if we enabled indexing for those fields which are not unique and contains repetitive data.