What is your solution exactly? I am experiencing the same problem. Simple formset takes minutes.
Render_to_response method has mimetype parameter. Did you call this function with some argument?
66 Ocak 2009 Salı 14:10:08 UTC-5 tarihinde Kottiyath Nair yazdı:
-- 66 Ocak 2009 Salı 14:10:08 UTC-5 tarihinde Kottiyath Nair yazdı:
Hi all,
My web application sends a medium size data grid (20 elements). I was using formsets for the same.
The issue I am facing is that the formset instantiation is very very slow. I timed it and it is taking ~4-7 seconds for it to instantiate.
Is there someway the speed can be increased?
There are no files sent. I am planning to, later.
The code:
logging.info('Start - %s' %time.clock())
DataFormSet = formset_factory(DataForm, extra=25)
logging.info('Formset Class created- %s' %time.clock())
formset = DataFormSet(request.POST, request.FILES)
logging.info('Created new formset- %s'%time.clock())
From my logs:
2009-01-06 22:53:30,671 INFO Start - 0
2009-01-06 22:53:30,671 INFO Formset Class created- 0.000403403225829
2009-01-06 22:53:34,296 INFO Created new formset- 3.62182316468
or later
2009-01-06 22:56:37,500 INFO Start - 186.836136716
2009-01-06 22:56:37,500 INFO Formset Class created- 186.836445135
2009-01-06 22:56:43,108 INFO Created new formset- 192.440754621
Please note that I am running the whole thing under the django development server in my laptop itself and not a server.
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/cIoIVLn89EMJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment