Even “Senior” developers often forget to use indexes in Django. You can’t imagine how faster it can get if you simply add two lines of code into your model!
In this article we will take measurements together: with and without indexes.
Setup
Our patient will be a small Django application with just 7 fields.
We first create 100K elements. And then, right in the middle of the database, we will be looking for 1000 of them.

#optimization #programming #django #index #performance

Just one  Index in Django makes your App 15x faster!
2.05 GEEK