grantmcconnaughey / django-field-history

A Django app to track changes to model fields.
BSD 3-Clause "New" or "Revised" License
314 stars 33 forks source link

refer to https://github.com/jazzband/django-model-utils/blob/master/… #39

Open tomli1981 opened 2 years ago

tomli1981 commented 2 years ago

…model_utils/tracker.py

FieldFile subclass with the only aim to remove the instance from the state.
The change introduced in Django 3.1 on FieldFile subclasses results in pickling the
whole instance for every field tracked.
As this is done on the initialization of objects, a simple queryset evaluation on
Django 3.1+ can make the app unusable, as CPU and memory usage gets easily
multiplied by magnitudes.