{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/22"}],"enrichment":{"capability":"Django middleware that logs and reports SQL query statistics for each web request, including query counts, execution time, and detection of duplicate queries.","skillfed_tags":["django-debugging","query-profiling","abandoned"],"use_cases":["Identify N+1 query problems during development by spotting repeated SQL patterns in request logs.","Monitor query performance during testing to catch regressions in SQL execution time across requests.","Debug slow requests by examining query counts and timing in response headers without parsing server logs.","Locate inefficient serialization or view logic by correlating duplicate query tracebacks to application code.","Profile Django views in development to understand SQL behavior before optimization."],"what_it_does":"Django Query Inspector is middleware that intercepts and analyzes SQL queries executed during each web request. It logs aggregate statistics\u2014total query count, execution time, and duplicate detection\u2014and optionally adds these metrics to HTTP response headers for easier debugging without server log inspection.\n\nThe package detects duplicate queries by normalizing SQL statements to ignore integer values, targeting the common Django pattern where N+1 queries occur due to missing prefetch_related or select_related calls. It can also include Python tracebacks showing where each duplicate query originated, helping developers identify the source code responsible. Configuration options allow fine-tuning of what gets logged, thresholds for query time alerts, and filtering of tracebacks to project-specific paths.","worth_installing":"No. The package is abandoned (last commit 2020-02-27, no releases since 2019-09-10) and will not receive security updates or Django compatibility fixes. For modern Django projects, consider actively maintained alternatives like django-debug-toolbar or django-silk, which offer similar query inspection with ongoing support."},"id":"django-queryinspect","links":{"html":"https://skillfed.io/packages/django-queryinspect","md":"https://skillfed.io/packages/django-queryinspect.md","pypi":"https://pypi.org/project/django-queryinspect/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-09-10","license_spdx":null,"license_treatment":"permissive","name":"django-queryinspect","python_support":"unspecified","summary":"Django Query Inspector"},"popularity":{"monthly_downloads":73619,"position":14961,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.1.0"}
