The main goal of optimization in Django projects is to make it fast to perform database queries. A properly optimized database will reduce the response time hence a better user experience. In this 4 part series, you will learn how to optimize the different areas of your Django application. This part will focus on optimizing the database for speed in Django applications.
Table of contents
Django Performance ImprovementsUnderstanding queriesQuery optimization1. Database indexing2. Caching3. Select related Vs. Prefetch related4. bulk method5. RawSql6. Foreign keysMonitoring Database OperationsConclusion1 Comment
Sort: