Discover possible N+1 queries in your code base
Project description
django_nplusone
Discover possible N+1 queries in Django ORM at runtime
The objective of this library is to help you discover any N+1s in your code at development time.
Installation
Install the package from PyPI using pip
as following
pip install django_nplusone
Usage
Once package is installed, you can register the package in your settings.py
as:
import nplusone
if DEBUG:
nplusone.show_nplusones()
This should start logging possible N+1s warnings using your logger configuration. The library uses standard python logging
module and uses logger by the name of nplusone
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_nplusone-0.0.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for django_nplusone-0.0.2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90ca3109e4a88b10e9114075bc6ff076937af71eb4225c63ff7ea2a0c4e21abc |
|
MD5 | fb8f9ffa7cccdad13aaca4cb0f068c9d |
|
BLAKE2b-256 | bd59e2ed5fa3d7f0186be3b88d1ff0720271183d1a5a3965fc8ddcf3e7a4cd1f |