Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Optimizing Django Queries with Select Related, Prefetch Related and Debug Toolbar

Pyplane via YouTube

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

Reviews

Start your review of Optimizing Django Queries with Select Related, Prefetch Related and Debug Toolbar

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.