Database access optimization
Database access optimization
Django’s database layer provides various ways to help developers get the most out of their databases. This document gathers together links to the relevant documentation, and adds various tips, organized under a number of headings that outline the steps to take when attempting to optimize your database usage.
Profile first
As general programming practice, this goes without saying. Find out what queries you are doing and what they are costing you. You may also want to use an external project like dj