django-prefetch-utils

An library of utilities and enhancements for Django's prefetch_related system.


License
BSD-1-Clause
Install
pip install django-prefetch-utils==0.2.0

Documentation

Overview

docs Documentation Status
tests Coverage Status
package

This library provides a number of utilities for working with and extending Django's prefetch_related system. Currently, it consists of:

  • a collection of descriptors to define relationships between models which support prefetching
  • a new implementation of prefetch_related_objects which supports an identity map so that multiple copies of the same object are not fetched multiple times.
  • Free software: BSD 3-Clause License

Installation

pip install django-prefetch-utils

Documentation

https://django-prefetch-utils.readthedocs.io/