Skip to content

liquidinvestigations/dj-tracker

 
 

Repository files navigation

Package version Monthly downloads

dj-tracker is an app that tracks your queries to help detecting some possible performance optimisations listed in Database access optimization.

Features

  • Detailed field usage of model instances
  • Report unused fields in a model instance and provides hints on when to use .defer and .only
  • Report model instance attributes access and provides hints on when to use .values or .values_list
  • Report cache hits and provides hints on when to use iterator
  • Provides hints on when to use .count, .contains, .exists
  • Detect N+1 queries
  • Detect when a deferred field is loaded
  • and many more insights into your queries with minimized overhead....

Demo

You can try dj-tracker with the bakerydemo on the demo app.

Requirements

Getting started

Check out the installation steps if you want to get started quickly or the tutorial to see a concrete example of dj-tracker usage.

Documentation

All documentation is in the "docs" directory and online at https://tijani-dia.github.io/dj-tracker/

Development phase - Contributing

dj-tracker is in alpha phase.

You can help a lot by reporting bugs you'll encounter. Feature requests, PRs or/and any feedback are also welcome.

Packages

No packages published

Languages

  • Python 69.8%
  • HTML 14.9%
  • C 7.9%
  • Cython 4.7%
  • JavaScript 1.4%
  • CSS 0.8%
  • Makefile 0.5%