[Django]-Django – track down the code that generated slow queries in database

2👍

There are plenty of tools out there to inspect of monitor the SQL queries that get executed inside a Django application.

  1. Django Debug Toolbar

    The Django Debug Toolbar is a configurable set of panels that display various debug information about the current request/response and when clicked, display more details about the panel’s content.

  2. Django Silk

    The Django Silk is a live profiling and inspection tool for the Django framework. Silk intercepts and stores HTTP requests and database queries before presenting them in a user interface for further inspection

  3. Elastic APM

    With Elastic APM, monitor, detect, and diagnose complex application performance issues to maintain an expected level of service.

    This is more like a production setup and you can visualize the matrics very easily with the help of out-of-the-box features. They do have an APM setup section for Django

👤JPG

Leave a comment