Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

queryshield_probe-0.3.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file queryshield_probe-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for queryshield_probe-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab4fdfdd45eb9ab32f3dbdf287620978f64abfc824f8b71293e88567b9fa8296
MD5 e74b8697e02c807e342c87a99ad34513
BLAKE2b-256 ceaf28861fe151b45cc6781bc5eb0d4c0ce86d3e1f8933cfb2747e8fcc2dd0a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page