mirror of
https://github.com/vinta/awesome-python.git
synced 2026-03-22 06:02:02 -05:00
[PR #1622] Add nplusone #1410
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/1622
Author: @lnxpy
Created: 9/24/2020
Status: 🔄 Open
Base:
master← Head:master📝 Commits (3)
431a5c5nplusone added88df3d5Update README.md16e7077items re-ordered📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
README.md(+2 -0)📄 Description
According to the repo:
nplusoneis a library for detecting the n+1 queries problem in Python ORMs, including SQLAlchemy, Peewee, and the Django ORM.Many object-relational mapping (ORM) libraries default to lazy loading for relationships. This pattern can be efficient when related rows are rarely accessed, but quickly becomes inefficient as relationships are accessed more frequently. In these cases, loading related rows eagerly using a JOIN can be vastly more performant. Unfortunately, understanding when to use lazy versus eager loading can be challenging: you might not notice the problem until your app has slowed to a crawl.
I myself used this tech so many times. It acts like a mid-level layer on the Django apps. It also uses a logging module in order to log every single moment during the process.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.