Re: MemoryError on insert_query

2011-07-19 Thread thanos
Thanks Tom settings.DEBUG was True, now False and all well Thanks again Thanos trades done 75 in 3640.7334 trades done 751000 in 3645.2171 trades done 751812 in 3649.1547 (6711, 6732, 751812) On Jul 19, 11:56 am, Tom Evans wrote: > On Tue, Jul 19, 2011 at 4:33 PM, t

Re: MemoryError on insert_query

2011-07-19 Thread Tom Evans
On Tue, Jul 19, 2011 at 4:33 PM, thanos wrote: > os: win32 > db: oracle 10 > django: 1.3 > python: 2.7 > > > While inserting around 750K of records I get the following error > settings.DEBUG is True or False? If True, it will store a log of every query and statistics about that query in django.d

MemoryError on insert_query

2011-07-19 Thread thanos
mpiler, self).execute_sql(None) File "c:\python27\lib\site-packages\django\db\models\sql \compiler.py", line 735, in execute_sql cursor.execute(sql, params) File "c:\python27\lib\site-packages\django\db\backends\util.py", line 43, in execute logger.debug('(%.3f) %s; arg

Re: Django: MemoryError

2011-07-09 Thread pankaj
e 167, in > > _render > >    return self.nodelist.render(context) > > >  File "/ot/w/u/django-s/django/template/__init__.py", line 796, in > > render > >    bits.append(self.render_node(node, context)) > > >  File "/ot/w/u/django-s/django/template/__in

Re: Django: MemoryError

2011-07-09 Thread Cal Leeming [Simplicity Media Ltd]
gt; render >bits.append(self.render_node(node, context)) > > File "/ot/w/u/django-s/django/template/__init__.py", line 809, in > render_node >return node.render(context) > > File "/ot/w/u/django-s/django/template/loader_tags.py", line 62, in >

Django: MemoryError

2011-07-09 Thread pankaj
ango-s/django/template/loader_tags.py", line 62, in render result = block.nodelist.render(context) File "/ot/w/u/django-s/django/template/__init__.py", line 799, in render return mark_safe(''.join([force_unicode(b) for b in bits])) MemoryError Any help will be highly

Re: MemoryError

2011-06-22 Thread Gagan (GPS)
I tried to work around the plotting code and the MemoryError seams to have resolved itself. Apparently there was some problem with the data handling. On Jun 22, 2:50 pm, "Gagan (GPS)" wrote: > Hi, > > I am building a website that can access data from my server, plot it > a

MemoryError

2011-06-21 Thread Gagan (GPS)
node result = node.render(context) File "/usr/lib/python2.7/dist-packages/django/template/ defaulttags.py", line 238, in render return nodelist.render(context) File "/usr/lib/python2.7/dist-packages/django/template/base.py", line 750, in render return mark_safe(&#x

Re: MemoryError when adding a lot of data

2009-11-21 Thread Doug Blank
On Sat, Nov 21, 2009 at 7:44 AM, Doug Blank wrote: [snip] > It does seem that: > > Table.objects.all().delete() > > is "leaking" memory (eg, continues to use memory) and is very slow. > I'm trying to find a better (faster, less memory) method similar to > the manage.py command sql_flush... Is t

Re: MemoryError when adding a lot of data

2009-11-21 Thread Doug Blank
On Fri, Nov 20, 2009 at 10:22 PM, Karen Tracey wrote: > On Fri, Nov 20, 2009 at 6:19 PM, Doug Blank wrote: >> >> Some additional data: >> >> I'm using Django 1.1 on Fedora11 with sqlite backend. I get the same >> kind of spiking of memory usage if I just enter: >> >> >>> Person.objects.all().dele

Re: MemoryError when adding a lot of data

2009-11-20 Thread Karen Tracey
On Fri, Nov 20, 2009 at 6:19 PM, Doug Blank wrote: > Some additional data: > > I'm using Django 1.1 on Fedora11 with sqlite backend. I get the same > kind of spiking of memory usage if I just enter: > > >>> Person.objects.all().delete() > > Memory usage continues to grow, and it doesn't seem to b

Re: MemoryError when adding a lot of data

2009-11-20 Thread Doug Blank
ckages/django/db/models/sql/query.py", > line 2369, in execute_sql >    cursor.execute(sql, params) >  File "/usr/lib/python2.6/site-packages/django/db/backends/util.py", > line 22, in execute >    sql = self.db.ops.last_executed_query(self.cursor, sql, params) >  File

MemoryError when adding a lot of data

2009-11-20 Thread Doug Blank
site-packages/django/db/backends/util.py", line 22, in execute sql = self.db.ops.last_executed_query(self.cursor, sql, params) File "/usr/lib/python2.6/site-packages/django/db/backends/__init__.py", line 217, in last_executed_query return smart_unicode(sql) % u_params MemoryError The line that loo

Re: MemoryError on bigs list of items

2009-06-25 Thread Frédéric Hébert
re very slow to display (about ten seconds and more) but there was not a Memory error. My validation server is virtualized. I will see with my admin the amount of memory on it. > I don't think setting MaxRequestsPerChild = 1 would do anything to > cause a MemoryError. It should actually

Re: MemoryError on bigs list of items

2009-06-25 Thread Andrew Fong
would do anything to cause a MemoryError. It should actually help, since if you're restarting the process after just 1 request, any memory leaks won't have time to build up. -- Andrew On Jun 25, 1:15 pm, Frédéric Hébert wrote: > Hi there, > >  I'm facing with a curious prob

MemoryError on bigs list of items

2009-06-25 Thread Frédéric Hébert
ar extension and set MaxRequestPerChild to 1 in Apache's conf file, both on my local dev PC and on the validation server. When I want to display two long list (1000+ items each) i get a MemoryError one time out of two. The remainder of project goes fine. I've resetted MaxRequestPerCh

Re: (Very) Large File Upload - mod_python MemoryError

2008-04-09 Thread Mike Axiak
I'm am one of the authors of the 2070 patch [1]. Indeed, it is what will help you here. However, I'm not sure how it will work with your code as I don't really see the context and I'm not omniscient. However, here's how you'd write to files in #2070:: from django.core.files.filemove import f

Re: (Very) Large File Upload - mod_python MemoryError

2008-04-09 Thread Karen Tracey
; > It seems to work great with files 32MB and smaller... but anything > over that seems to throw this mod_python MemoryError. I am all for > using FTP, but the powers that be ( my boss/project manager ) would > like people to be able to upload a 150MB file via form post ( I know >

(Very) Large File Upload - mod_python MemoryError

2008-04-09 Thread [EMAIL PROTECTED]
mod_python MemoryError. I am all for using FTP, but the powers that be ( my boss/project manager ) would like people to be able to upload a 150MB file via form post ( I know it takes over an hour..nuts ). This is my code: fout = file (os.path.join(getUploadDir(), filename),

MemoryError with zip file upload

2008-01-10 Thread [EMAIL PROTECTED]
only let's me upload those files when i'm sure that the contents are of a specific type. In order to check the file comes in the request variable but when the zip file is around 20 mb i get the following error message data = self._sock.recv(recv_size) MemoryError followed by error: (32,