4 ms·
I would say there are two primary ways DDT helps you spot database performance problems. The first is that "oh my god" moment when you see via DDT that your vi
by vangale 13y ago
I would say there are two primary ways DDT helps you spot database performance problems.
The first is that "oh my god" moment when you see via DDT that your view is doing 100+ queries to the database. This leads to research into Django ORM features like "select_related" and other ways to cut down the number of queries.
The second is clicking DDT's handy EXPLAIN button on a single query that is taking a long time. Sometimes this can help improve performance by adding an index to a field.