#35279: Memory Leak with `prefetch_related`
-------------------------------+--------------------------------------
     Reporter:  Ken Tong       |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  4.2
     Severity:  Normal         |               Resolution:
     Keywords:  memory leak    |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Comment (by Ken Tong):

 Hi Team,

 So far I am adding the code below in the appropriate lines in order to fix
 the memory leak in my projects. Hopefully there will be a fix and
 documented way to properly clean up the cache.

 {{{
 foo._prefetched_objects_cache.pop("bar_set")
 }}}

 Thank you for your attention!
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35279#comment:1>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e18641c84-3c729fb1-88db-45b0-a917-3e142a731ce5-000000%40eu-central-1.amazonses.com.

Reply via email to