X Tutup
The Wayback Machine - https://web.archive.org/web/20210204235009/https://github.com/vinta/awesome-python/pull/1622
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nplusone #1622

Open
wants to merge 3 commits into
base: master
from
Open

Add nplusone #1622

wants to merge 3 commits into from

Conversation

@lnxpy
Copy link
Contributor

@lnxpy lnxpy commented Sep 24, 2020

According to the repo:

nplusone is 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.

@ulgens
ulgens approved these changes Sep 24, 2020
@lnxpy lnxpy force-pushed the lnxpy:master branch from 67f4762 to 431a5c5 Oct 4, 2020
lnxpy added 2 commits Oct 4, 2020
@lnxpy
Copy link
Contributor Author

@lnxpy lnxpy commented Oct 4, 2020

The new DevOps tool, DBMQ is now listed. DBMQ is a way to automate the Django application production. It also automates all message queuing tasks, database connections, and etc based on Docker.

@53jk1
53jk1 approved these changes Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
X Tutup