#16022: Cyclic reference in FieldFile causes memory usage to grow considerably
-------------------------------------+-------------------------------------
Reporter: Gustavo | Owner: nobody
Type: Bug | Status: reopened
Milestone: | Component: Database layer
Version: 1.1 | (models, ORM)
Resolution: | Severity: Normal
Triage Stage: | Keywords: memory leak
Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
-------------------------------------+-------------------------------------
Changes (by Gustavo):
* status: closed => reopened
* resolution: worksforme =>
Comment:
Hello, aaugustin.
Thank you very much for looking into this!
I forgot to add a useful piece of information here, which I mentioned on
[http://groups.google.com/group/django-
users/browse_thread/thread/804b4fd7a3d126fb Google Groups]: Memory
increases considerably when you query a model that has a !FileField. I'm
sorry about that.
To reproduce this, you could create, say, 2000 records and iterate over
them like this inside a Django view:
{{{
for record in MyModel.objects.all():
echo record.upload
}}}
As you refresh the page, you'll notice that memory increases.
Cheers.
--
Ticket URL: <https://code.djangoproject.com/ticket/16022#comment:7>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.