3

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.

Kye
  • 4,279
  • 3
  • 21
  • 49
john
  • 31
  • 1
  • 3

1 Answers1

1

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.

Docs

settings.py

DEBUG_TOOLBAR_PANELS = {
    'debug_toolbar.panels.profiling.ProfilingPanel',
}
whp
  • 1,406
  • 10
  • 10