dj-tracker
bakerydemo
dj-tracker | bakerydemo | |
---|---|---|
7 | 7 | |
72 | 884 | |
- | 1.2% | |
6.6 | 7.7 | |
6 months ago | 4 days ago | |
Python | Python | |
BSD 3-clause "New" or "Revised" License | BSD 3-clause "New" or "Revised" License |
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
-
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.
bakerydemo
-
pycharm vs vscode
If I go to this wagtail-based site's repository and click the "Open in Gitpod" button in the readme, it opens a version I can edit and test on my local system in PyCharm, backed by Gitpod VMs. I haven't figured out (though I haven't tried too hard) how to integrate Gitpod with emacs. PyCharm just worked.
-
I want to read good python code, where can I find some excellent code?
I've been looking for the same thing, the better resource I found so far in this sense is Wagtail Bakery
-
dj-tracker - A django app that tracks your queries and helps optimise them
Yes, it does help with `select_related`. For example, here is an example of what the `Related` tab shows for the `breads` path (using the [`bakerydemo` project](https://github.com/wagtail/bakerydemo)):
-
Is there any widely-used sample django app with data?
It is more special-purpose than you're looking for, I expect, but I really like the wagtail demo app.
-
Creating a schematic editor within the Wagtail CMS with StimulusJS
You have a working Wagtail project running locally, either your own project or something like the bakerydemo project.
-
Wagtail - multiple authors for blogpost, I am 99% there but cant figure it out
You can refer this sample to implement author feature as well as other aspects of your blog https://github.com/wagtail/bakerydemo
-
How to build an interactive guide for users in the Wagtail CMS admin
It is assumed that you will have a Wagtail application running, if not you can use the Wagtail Bakery Demo as your starting point.
What are some alternatives?
django-debug-toolbar - A configurable set of panels that display various debug information about the current request/response.
wagtail-tailwind-blog - Wagtail blog based on Tailwind CSS, Stimulus, it supports Markdown, Latex and user comments.
Cyberbrain - Python debugging, redefined.
bakerydemo - Next generation Wagtail demo, born in Reykjavik
python3-trepan - A gdb-like Python3 Debugger in the Trepan family
puput - A Django blog app implemented in Wagtail
winpdb - Fork of the official winpdb with improvements
shepherd - Guide your users through a tour of your app
pyringe - Debugger capable of attaching to and injecting code into python processes.
django-modelcluster - Django extension to allow working with 'clusters' of models as a single unit, independently of the database
wdb - An improbable web debugger through WebSockets
Wagtail - A Django content management system focused on flexibility and user experience