{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/9"}],"enrichment":{"capability":"Django middleware that logs the number of database queries executed for each HTTP request in the runserver console, with configurable thresholds and filtering.","skillfed_tags":["django-middleware","query-profiling","development-tool"],"use_cases":["Identify query problems during local development by monitoring query counts per request.","Compare query efficiency across different request handlers to spot performance issues.","Filter out noisy middleware (e.g., health checks, admin requests) to focus on application endpoints.","Track duplicate queries to find repeated database calls that could be optimized.","Add query count metadata to HTTP response headers for integration with monitoring tools."],"what_it_does":"django-querycount is a Django middleware that intercepts HTTP requests during development and logs how many database queries were executed to handle each request. It prints colored, threshold-based output to the runserver console, helping developers spot performance issues early. The middleware is hardcoded to work only when DEBUG is True, making it safe for development-only use.\n\nThe package offers configurable thresholds to color-code query counts (MEDIUM at 50, HIGH at 200), regex-based request and SQL pattern filtering to ignore certain paths or query types, optional duplicate query reporting, and a custom response header containing the query count. It has no runtime dependencies and integrates purely through Django's middleware stack.","worth_installing":"Yes, if you are actively developing a Django application and want low-friction query profiling during local testing. The permissive MIT license and zero runtime dependencies make it easy to add. However, maintenance is dormant (last release 2023-01-05); verify compatibility with your Django and Python versions before relying on it. The high install friction is offset by the simplicity of the middleware pattern."},"id":"django-querycount","links":{"html":"https://skillfed.io/packages/django-querycount","md":"https://skillfed.io/packages/django-querycount.md","pypi":"https://pypi.org/project/django-querycount/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2023-01-05","license_spdx":null,"license_treatment":"permissive","name":"django-querycount","python_support":"unspecified","summary":"Middleware that Prints the number of DB queries to the runserver console."},"popularity":{"monthly_downloads":153337,"position":10883,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.3"}
