Closed lime-green closed 4 years ago
nvm, someone else is working on pagination!
Thanks for your work! I will reuse it to paginate with a json API.
I have one question: I think I would have put _build_user_context(user, winner, meijin)
in models as a user method. Same with _fetch_and_get_sgfs_context(base_sgfs_queryset)
as a sgf method.
Is it best practice to have t hose in views?
Hi this PR improves the performance and usability of
/league/games/
!to_attr
which is faster than creating querysets (https://github.com/django/django/commit/f51c1f590085556abca44fd2a49618162203b2ec)Overall impact is about 50% reduction in time for initial page load, but more significant reduction for time until interactive