30.3.5 Optimization

Entire books could be (and have been) written about optimization, performance, and caching. We saw how to optimize querysets but didn’t discuss denormalization of databases. We cached entire webpages but did not have time to see that Django provides ways to cache querysets, views, sections of templates, and just about anything. We did not even begin to discuss how to optimize Python code.

A great introduction to a more thorough understanding of the problems of optimization and performance is Peter Baumgartner and Yann Malet’s High Performance Django.

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.