Django DB query probe for QueryShield
Project description
queryshield-probe
Django database query performance probe for QueryShield.
Detect and analyze N+1 queries, missing indexes, slow queries, and other performance issues in Django tests and applications.
Features
- N+1 query detection
- Missing index detection
- Query budget enforcement
- Performance regression detection
- Integration with pytest
- Integration with Django test runner
- Cloud cost estimation
Installation
pip install queryshield-probe
Usage
Pytest Integration
import pytest
from queryshield_probe import queryshield_pytest_plugin
@pytest.mark.queryshield
def test_user_queries(db):
users = User.objects.all()
for user in users:
print(user.email)
Django Settings
INSTALLED_APPS = [
'queryshield_probe',
]
Documentation
See the main QueryShield documentation for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file queryshield_probe-0.3.0-py3-none-any.whl.
File metadata
- Download URL: queryshield_probe-0.3.0-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab4fdfdd45eb9ab32f3dbdf287620978f64abfc824f8b71293e88567b9fa8296
|
|
| MD5 |
e74b8697e02c807e342c87a99ad34513
|
|
| BLAKE2b-256 |
ceaf28861fe151b45cc6781bc5eb0d4c0ce86d3e1f8933cfb2747e8fcc2dd0a6
|