How to diagnose and fix slow queries with Django Debug Toolbar

Опубликовано: 09 Май 2020
на канале: Matt Segal
6,832
172

blog post: https://mattsegal.dev/django-debug-to...
code on github: https://github.com/MattSegal/djdt-per...

Your Django views are running slowly and you want to make them faster, but you can't figure out what the issue is just by reading the code. Just as bad is when you're not sure if you're using the Django ORM correctly - how can you know if the code you write will be slow?

This is where a profiling tool comes in handy. Django Debug Toolbar is great for figuring out why your Django views are going slow. This guide will show you how to use DJDT to find and fix slow database queries in your views.

Does you business need to launch a new Django site? I can help: https://mattsegal.com.au