{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/2"}],"enrichment":{"capability":"Detects n+1 query problems in Python ORMs (Django, SQLAlchemy, Peewee) by monitoring lazy and eager loading patterns and logging warnings when inefficient queries are emitted.","skillfed_tags":["orm-profiling","development-only","abandoned"],"use_cases":["Identify n+1 query patterns during Django development before they reach production","Profile Flask-SQLAlchemy applications to find inefficient relationship loading","Detect unused eager loads that waste database resources in request handlers","Enforce query efficiency in automated tests by raising exceptions on n+1 detection","Diagnose slow ORM performance by pinpointing the exact code lines causing lazy loads"],"what_it_does":"nplusone is an ORM profiling tool that detects the n+1 queries problem\u2014a common performance pitfall where an application issues many redundant database queries instead of using efficient joins or batch loading. It integrates with Django, Flask-SQLAlchemy, Peewee, and generic WSGI applications to monitor query patterns during development.\n\nThe tool logs warnings when it detects lazy-loaded relationships that could be eagerly loaded for better performance, and also warns about eagerly loaded data that is never accessed in the current request. It supports both framework middleware integration (Django, Flask) and a generic profiler context manager for non-HTTP code. Configuration options allow raising exceptions on detected problems to fail automated tests, and whitelisting specific models or fields to suppress false positives.","worth_installing":"No\u2014not for new projects. The package is abandoned (last release May 2018, no commits since November 2022) and its license treatment is unclear. While it solves a real problem and has low install friction, modern Django and SQLAlchemy versions may not be fully supported, and there is no active maintenance. Consider modern alternatives like django-silk, django-debug-toolbar, or SQLAlchemy's own query analysis tools for current development."},"id":"nplusone","links":{"html":"https://skillfed.io/packages/nplusone","md":"https://skillfed.io/packages/nplusone.md","pypi":"https://pypi.org/project/nplusone/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2018-05-21","license_spdx":null,"license_treatment":"unclear","name":"nplusone","python_support":"unspecified","summary":"Detecting the n+1 queries problem in Python"},"popularity":{"monthly_downloads":600458,"position":5821,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.0"}
