DjangoCon US 2024: A Related Matter: Optimizing your webapp by using ... with Christopher Adams

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=7CJ_7vNd2lU



Duration: 0:00
32 views
2


A Related Matter: Optimizing your webapp by using django-debug-toolbar, select_related(), and prefetch_related() with Christopher Adams

What happens in an HTTP request-response cycle is often difficult to understand. Optimizing database queries is a crucial aspect of web development, yet it often remains shrouded in mystery for many beginners. By attending this talk, attendees will gain practical insights into how to leverage django-debug-toolbar to inspect an HTTP request-response cycle. By revealing and fixing pathological queries, developers can improve application performance and user experience. The talk will cover indexing, select_related, prefetching, and other optimization strategies.

During the session, I will guide attendees through the following key points:

Understanding Query Execution: Exploring the anatomy of a QuerySet, focusing on immutability, lazy evaluation, and the fact that a QuerySet is not a query.
Introduction to django-debug-toolbar: An overview of what django-debug-toolbar is and how it can be integrated into Django projects.
Identifying Pathological Queries: Techniques for using django-debug-toolbar to identify slow or inefficient database queries within an HTTP request.
Strategies for Optimization: Practical tips and strategies for optimizing identified queries, including indexing, select_related, prefetching, and other optimization.
Real-World Examples: Illustrative examples and case studies demonstrating the impact of query optimization on application performance.
This talk is ideal for beginners in Django development who are looking to deepen their understanding of query optimization and improve the performance of their Django applications. Attendees should have a basic familiarity with Django concepts such as models and basic database design, but no prior experience with query optimization is required.


This talk was presented at: https://2024.djangocon.us/talks/a-rel...

LINKS:
Follow Christopher Adams 👇
On GitHub: https://github.com/adamsc64
On X: https://x.com/adamsc64
Website: http://christopheradams.info/

Follow DjangoCon US 👇
https://fosstodon.org/@djangocon
https://x.com/djangocon


Follow DEFNA 👇
https://www.defna.org/


Video Production by Confreaks
Follow Confreaks 👇
https://confreaks.com/
https://x.com/confreaks
https://confreaks.bsky.social/




Other Videos By Confreaks


2025-03-09DjangoCon US 2024: You got that nice tech salary, now what? with Tim Schilling
2025-03-09DjangoCon US 2024: Finding 2.0 with Marc Gibbons
2025-03-08DjangoCon US 2024: Django + Alpine.js + htmx Ups & Downs with Karen Tracey
2025-03-08DjangoCon US 2024: How to design and implement extensible software with plugins with Simon Willison
2025-03-07DjangoCon US 2024: Lightning Talks (Tuesday) with Andrew Mshar
2025-03-06DjangoCon US 2024: Django: the web framework that changed my life with Sage Abdullah
2025-03-06DjangoCon US 2024: Keynote - How To Be A Developer and Other Lies We Tell Ourselves with Mario Munoz
2025-03-05DjangoCon US 2024: Product 101 for Techies and Tech Teams with Amanda Savluchinske
2025-03-05DjangoCon US 2024: Opening Remarks (Tuesday) with Velda Kiara
2025-03-04DjangoCon US 2024: Troubleshooting is a Lifestyle 😎 with Jack Linke
2025-03-04DjangoCon US 2024: A Related Matter: Optimizing your webapp by using ... with Christopher Adams
2025-03-03DjangoCon US 2024: Lightning Talks (Monday) with Andrew Mshar
2025-03-02DjangoCon US 2024: Opening Remarks (Monday) with Peter Grandstaff
2025-03-02DjangoCon US 2024: Choosing Wisely: SPA vs. HTMX for Your Next Web Project with Chris May
2025-03-01DjangoCon US 2024 - Orientation with Kojo Idrissa
2025-02-28Desired State Configuration (DSC) Version 3 by Michael Greene
2025-02-27Mastering the Microsoft Graph PowerShell by Merill Fernando
2025-02-26Private Galleries by Sydney Smith
2025-02-26Rapidly and securely manage your resources with Azure Cloud Shell by Jason Helmick, Steven Judd
2025-02-26Detecting Workload Anomalies with Prometheus and Machine Learning by Anthony Nocentino
2025-02-25Improving Your Attributes by James Ruskin