nplusone
pellet
nplusone | pellet | |
---|---|---|
2 | 2 | |
974 | 75 | |
- | - | |
0.0 | 2.7 | |
over 1 year ago | 6 months ago | |
Python | Python | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nplusone
-
Finding n + 1 problem on a local machine
- https://github.com/jmcarp/nplusone can be enabled on dev / test and warn / fail tests
-
Ban 1+N in Django
Rails has Bullet[0] to help identify and warn you against N+1
Does Django have anything active? Quick search revealed nplusone[1] but its been dead since 2018.
[0] https://github.com/flyerhzm/bullet
[1] https://github.com/jmcarp/nplusone
pellet
-
Django 5.0 Is Released
Simple middleware can warn you about lazy loading/N+1 queries. Most of the time people just forget it happens.
Try using: https://github.com/har777/pellet
-
Ban 1+N in Django
Self plug: Checkout https://github.com/har777/pellet to easily find and fix django N+1 issues.
I usually add it to existing integration tests so that they raise exceptions on N+1. If test coverage is low then I would suggest sending the N+1 metrics to something like datadog. That way your users using the product will reveal all the N+1 issues on your monitoring solution.
What are some alternatives?
django-orm-plus
funcy - A fancy and practical functional tools
django-auto-prefetching - Automatic prefetching for Django
django-zen-queries - Explicit control over database query execution in Django applications
django-seal - Django application providing queryset sealing capability.
django-cacheops - A slick ORM cache with automatic granular event-driven invalidation.
bullet - help to kill N+1 queries and unused eager loading
openapi-typescript - Generate TypeScript types from OpenAPI 3 specs