Paul's Programming Notes     Archive     Feed     Github

Django - Requiring Prefetching

https://github.com/pawl/django_require_prefetch_select_related_example

I made a repository to try to figure out the best way to require prefech_related/select_related when fetching a model's related objects. I also want to figure out a good pattern for avoiding duplicated prefetch_related/select_related for multiple places in a codebase that need the related objects eager loaded in the same way.