Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn to optimize Django database queries in this 21-minute tutorial focused on leveraging select_related and prefetch_related methods alongside Django Debug Toolbar. Master the fundamentals of query optimization by exploring practical examples, understanding when to use each method, and implementing them in real-world scenarios. Progress through hands-on demonstrations covering Django Debug Toolbar installation, database object creation, and the strategic use of select_related and prefetch_related functions. Discover advanced optimization techniques using the Prefetch class while gaining insights into database query performance monitoring and improvement strategies. Enhance your Django application's performance by minimizing database queries and optimizing data retrieval patterns through practical implementation examples.
Syllabus
- intro
- what has been created for this project
- install django debug toolbar
- adding objects to the db
- understanding the basics
- using select related to optimize queries
- using prefetch related to optimize queries
- using the Prefetch class with prefetch related
Taught by
Pyplane