Re: Use of FileField fields causes memory consumption to grow without releasing it

2011-05-13 Thread Gustavo Narea
I've filled a bug report: http://code.djangoproject.com/ticket/16022 On 13/05/11 10:57, Gustavo Narea wrote: > Hello, > > I've noticed that when you iterate over a query set and use a > FileField instance from each model instance, the memory used by the > process increases every time the loop fini

Re: Use of FileField fields causes memory consumption to grow without releasing it

2011-05-13 Thread Gustavo Narea
OK, I've found that if I use .iterator() on the query set, the amount of memory used doesn't grow. So I suppose FileField is somehow (indirectly) referencing something in the retrieved data. BTW, we've created a fresh Django project with "django-admin startproject" and the problem is present. It l

Use of FileField fields causes memory consumption to grow without releasing it

2011-05-13 Thread Gustavo Narea
Hello, I've noticed that when you iterate over a query set and use a FileField instance from each model instance, the memory used by the process increases every time the loop finishes. This happens on the Web and command-line interfaces. Say you have the following model: """ class Bug(Model):