dj-tracker
A Django app that tracks your queries to help optimize them. Demo: https://dj-tracker-bakerydemo.herokuapp.com/dj-tracker/ (by Tijani-Dia)
django-debug-toolbar
A configurable set of panels that display various debug information about the current request/response. (by jazzband)
dj-tracker | django-debug-toolbar | |
---|---|---|
7 | 19 | |
72 | 7,911 | |
- | 0.5% | |
6.6 | 8.4 | |
6 months ago | 4 days ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dj-tracker
Posts with mentions or reviews of dj-tracker.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-29.
-
Finding n + 1 problem on a local machine
I'd recommend dj-tracker. It can show you exactly which field your related queries come from and you'll easily be able to know when your N+1 problem is solved or not using the dashboard. See the Detect and resolve related queries page on the docs. (It comes with very little overhead compared to silk or debug-toolbar and it persists all the data in a database so you don't lose when you quit the server).
-
Queryset performance when joining tables?
You could try dj-tracker. It'll help you detect N+1 or any related queries but also apply the deferring optimisation suggested by eysidi.
-
A Django app that tracks your queries to help optimize them
That was the little story for dj-tracker and here is what it can do in summary: - Keep track of all fields accessed (allowing to use only or defer when some fields aren't used - Keep track of all attributes accessed (it can then give you a hint to use .values or .values_list) - Show how effective a queryset's cache is (and provide hints on using the .iterator optimisation) - Show all related queries in the same section and where they come from (making it super easy to detect N+1 queries) - Detailed traceback, SQL and template information for each query - Everything is persisted in a database so you can see how your application performs over time
- A Django app that helps monitor and improve your database queries
-
Django performance optimization techniques
For these reasons and many others (we lose the data as soon as we quit the session, it only keeps track of queries inside a request/response cycle i.e not in a background job for example...), I started building an app (dj-tracker) that can give you various insights into your queries but also hints on how to optimize them.
-
dj-tracker - A django app that tracks your queries and helps optimise them
Hmm, interesting. There is a Github action that builds wheels and uploads them to Pypi. That's why I didn't specify Cython in the project's dependencies. I guess I'll need to look at it more in-depth. I'll also update the documentation re urls.
django-debug-toolbar
Posts with mentions or reviews of django-debug-toolbar.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-11-13.
-
Setting up Django in a Better Way in 5 Minutes and Understanding How It Works
The reason behind this splitting is that we can safely use packages and related settings only where we need. For example, this starter kit has the package django-debug-toolbar. This is only intended for your development environment and not for your production. This can be very risky if used in production because if your Django project encounters errors, all the debug info will be shown to the user which is a severe security risk. Similarly, for tracking errors in production, we're using Sentry which is not needed in our local environment since we already have django-debug-toolbar. For keeping these settings file separate so that they don't conflict with each other, the settings file is split for serving different environments.
-
Difficulty with foreignkey connecting to main object
django-debug-toolbar: https://github.com/jazzband/django-debug-toolbar
-
The Django ecosystem is not so good
https://github.com/jazzband/django-debug-toolbar/issues?q=is%3Aopen+is%3Aissue+label%3ABug
- Slow performance on AJAX queries in Django 4
-
is it alright to use raw sql and not the ORM if my queries are slow?
https://github.com/jazzband/django-debug-toolbar Allows you to check which sql queries are being run on your app. See if they are optimized first.
-
How to improve django template performance?
Perhaps try the django-debug-toolbar. It might be able to tell you what is causing the slow load time.
-
How do I determine where to cache?
I would start with https://github.com/jazzband/django-debug-toolbar and figure out what causes the slowness.
-
Improve your Django query with bulk_create 👋
-> The debugging above from django-debug-toolbar
-
Django Debug Toolbar
Documentation, including installation and configuration instructions, is available at https://django-debug-toolbar.readthedocs.io/.
- Five Easy to Miss PostgreSQL Query Performance Bottlenecks
What are some alternatives?
When comparing dj-tracker and django-debug-toolbar you can also consider the following projects:
Cyberbrain - Python debugging, redefined.
django-silk - Silky smooth profiling for Django
wdb - An improbable web debugger through WebSockets
django-ninja - 💨 Fast, Async-ready, Openapi, type hints based framework for building APIs
ipdb - Integration of IPython pdb
python3-trepan - A gdb-like Python3 Debugger in the Trepan family
pudb - Full-screen console debugger for Python
pyringe - Debugger capable of attaching to and injecting code into python processes.
django-devserver - A drop-in replacement for Django's runserver.
flask-debugtoolbar - A toolbar overlay for debugging Flask applications
dj-tracker vs Cyberbrain
django-debug-toolbar vs django-silk
dj-tracker vs wdb
django-debug-toolbar vs django-ninja
dj-tracker vs ipdb
django-debug-toolbar vs ipdb
dj-tracker vs python3-trepan
django-debug-toolbar vs pudb
dj-tracker vs pyringe
django-debug-toolbar vs django-devserver
dj-tracker vs flask-debugtoolbar
django-debug-toolbar vs flask-debugtoolbar