Core: learn it Step 14 of 16 on the Backend Developer (Django) roadmap

Database indexes

Adding an index to fields you often filter or sort by can turn a slow page into a fast one. Declare indexes in the model's Meta class.

Resources

More in Caching and performance

See it on the Backend Developer (Django) roadmap