Skip to content

Commit f417575

Browse files
committed
Add note about tuning the profiling panel.
1 parent 3924556 commit f417575

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/lab2.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ Let's consider what we know:
201201
- Are the queries running in a reasonable amount of time?
202202
- Is there a section of code that's running slowly?
203203
- Enable the Profiling panel and refresh the page.
204+
- You may need to increase the value of ``PROFILER_THRESHOLD_RATIO`` in the
205+
settings.py file to find the culprit in ``project/newsletter/views.py``.
204206
- If the slowness isn't obviously from the SQL panel, we need to see where time
205207
is being spent in the application.
206208
- Look for long durations or a high number of iterations.

0 commit comments

Comments
 (0)