Reputation: 31
From the debug result, I can see my website browser timing is really long.
Basically I create 13000 items for the blog table. Seems like it takes not a long time to do sql query.
The debug result
My questions is how can I identify bottlenecks from debug result. Why it loads so slowly, takes near 20s. How can I reduce the domContentLoadedEvent and domloading Time.
Thanks.
Upvotes: 3
Views: 3472
Reputation: 1514
Here's a direct answer to your question using Debug Toolbar: enable the profiling panel.
Note: this will remove the other panels if you don't have the default panels in the dictionary, as in the example.
settings.py
DEBUG_TOOLBAR_PANELS = {
'debug_toolbar.panels.profiling.ProfilingPanel',
}
Upvotes: 1