#36701: ModelState objects create reference cycles that require a gc pass to 
free
-------------------------------------+-------------------------------------
     Reporter:  Patryk Zawadzki      |                    Owner:  Varun
         Type:                       |  Kasyap Pentamaraju
  Cleanup/optimization               |                   Status:  assigned
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  memory gc            |             Triage Stage:  Accepted
  modelstate fields_cache            |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Patryk Zawadzki):

 Hey, we have a working internal workaround that adds `__del__` to model
 classes and just does `del self._state` and it seems to work great.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36701#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019a4a9dcfcf-e0da166e-3b67-46f1-a580-4e7c580b17f8-000000%40eu-central-1.amazonses.com.

Reply via email to