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

Prefetch related v inforequest_mine #419

Open
martinmacko47 opened this issue Oct 24, 2021 · 0 comments
Open

Prefetch related v inforequest_mine #419

martinmacko47 opened this issue Oct 24, 2021 · 0 comments

Comments

@martinmacko47
Copy link
Owner

martinmacko47 commented Oct 24, 2021

Pomocou prefetch_related a select_related zoptimalizovat endpoint inforequest_mine tak, aby vykonal vzdy konstantny pocet queries bez ohladu na pocet infoziadosti usera.

Po zoptimalizovani by test MineViewTest.test_related_models_are_prefetched_before_render mal obsahovat nula alebo iba niekolko malo queries, bez ohladu na to, kolko ma user infoziadosti.

Vid vysvetlenie #416 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants