Re: Databrowse: Loading a large number of records

2009-11-10 Thread Alex Robbins

That error happens if you refresh the page while it is still loading
from the dev server. You may have gotten impatient, refreshed and
caused that error. It is possible that this isn't really the problem
you are having, but just a secondary issue caused by the long load
time and a page refresh.

On Nov 9, 6:49 am, Ismail Dhorat  wrote:
> Hi Guys,
>
> I am currently testing the contrib app databrowse in Django ver 1.1.1,
> the current setup for testing purposes is:
>
> OS: Mac OsX 10.6
> DB: Sqlite3
> Django: 1.1.1
> Python: 2.5
>
> Here is what i have done, i have a model and i am trying to see what
> the capabilities and limits of this app (since i will most likely be
> working with a huge number of records), i loaded +- 300,000 records
> into the DB current SQLITE file size is 30mb
>
> When trying to access /databrowse i get errors, and the page refuses
> to load. It basically hangs, from the looks of it the page seems to be
> displaying all the contents. Here is the traceback:
>
> Traceback (most recent call last):
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
> line 280, in run
>     self.finish_response()
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
> line 320, in finish_response
>     self.write(data)
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
> line 399, in write
>     self.send_headers()
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
> line 463, in send_headers
>     self.send_preamble()
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
> line 381, in send_preamble
>     'Date: %s\r\n' % http_date()
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py",
> line 261, in write
>     self.flush()
>   File 
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py",
> line 248, in flush
>     self._sock.sendall(buffer)
> error: (32, 'Broken pipe')
>
> I also see there has been a ticket logged for this issue about 2 years ago.
>
> http://code.djangoproject.com/ticket/4481
>
> Has this been implemented? If not would would a simple paginate tag in
> the template suffice?
>
> Regards,
> Ismail
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Databrowse: Loading a large number of records

2009-11-09 Thread sstein...@gmail.com


On Nov 9, 2009, at 7:49 AM, Ismail Dhorat wrote:
> I also see there has been a ticket logged for this issue about 2  
> years ago.
>
> http://code.djangoproject.com/ticket/4481
>
> Has this been implemented? If not would would a simple paginate tag in
> the template suffice?

Have you tried applying the patch in the ticket to see whether it  
solves your specific case?

S


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Databrowse: Loading a large number of records

2009-11-09 Thread Ismail Dhorat

Hi Guys,

I am currently testing the contrib app databrowse in Django ver 1.1.1,
the current setup for testing purposes is:

OS: Mac OsX 10.6
DB: Sqlite3
Django: 1.1.1
Python: 2.5

Here is what i have done, i have a model and i am trying to see what
the capabilities and limits of this app (since i will most likely be
working with a huge number of records), i loaded +- 300,000 records
into the DB current SQLITE file size is 30mb

When trying to access /databrowse i get errors, and the page refuses
to load. It basically hangs, from the looks of it the page seems to be
displaying all the contents. Here is the traceback:

Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
line 280, in run
self.finish_response()
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
line 320, in finish_response
self.write(data)
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
line 399, in write
self.send_headers()
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
line 463, in send_headers
self.send_preamble()
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/django/core/servers/basehttp.py",
line 381, in send_preamble
'Date: %s\r\n' % http_date()
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py",
line 261, in write
self.flush()
  File 
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/socket.py",
line 248, in flush
self._sock.sendall(buffer)
error: (32, 'Broken pipe')

I also see there has been a ticket logged for this issue about 2 years ago.

http://code.djangoproject.com/ticket/4481

Has this been implemented? If not would would a simple paginate tag in
the template suffice?

Regards,
Ismail

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---