Mohammad Ahtasham ul Hassan

I am a software engineer with 3 years of experience building and maintaining software applications.
I'm particularly passionate about web development and AI. For the past 3 years I have been working with edX on the EdTech and e-commerce domain of the application maintaining the current software stack as well as integrating new features.
As an eager learner and explorer, who is constantly seeking new challenges and technologies, I can't wait to learn, share and reconnect with the DjangoCon community.


URL

https://aht007.github.io/personal-portfolio/

Twitter handle

Iht_Malik


Session

09-24
15:00
25min
Level Up Your Django Performance: Identifying and Taming N+1 Queries
Mohammad Ahtasham ul Hassan, Shafqat Farhan Ahmed

In the world of Django development, ensuring optimal performance is paramount for building robust and scalable web applications. Have you ever felt that your Django application is sluggish? You might be facing the infamous N+1 query problem, a notorious performance bottleneck that arises when dealing with ORM-based database queries.

This presentation dives into the world of N+1 queries, explaining how they occur and their impact on performance. We'll explore practical solutions to optimize your code and eliminate these performance bottlenecks.

In this session, we will learn to identify N+1 queries and understand their consequences. We will look into techniques to fix N+1 queries and keep our Django app running smoothly. Additionally, we will take a deeper dive into N+1 queries, exploring advanced optimization strategies like lazy loading, prefetching, and utilizing Django's ORM features like select_related and prefetch_related. Attendees will get a sneak peek into debugging methods, exploring how to use tools like the Django Debug Toolbar and SQL logging to identify and resolve issues.

By the end of this session, you'll be equipped to:
Identify and diagnose N+1 queries in your Django projects.
Implement effective solutions to optimize your application's performance.
Utilize debugging tools and techniques to pinpoint and fix N+1 query issues.

This presentation is suitable for Django developers of all experience levels, as well as for those who might not be working on Django but use other ORM-based frameworks.

General
Online talks