Re: Django too slow

2009-01-08 Thread bruno desthuilliers

On 8 jan, 07:04, Vicky  wrote:
> I using the django to generate xml and to fetch datas from database.
> When i run it the response is too slow. it takes nearly 4sec to load
> the page. So what can i do to make my program more efficient. Plse
> tell me some things to avoid so that it becomes faster

First make sure you set DEBUG=False in your settings. Then profile -
it's the only way to know where the bottlenecks are.
--~--~-~--~~~---~--~~
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: Django too slow

2009-01-07 Thread David Zhou

On Thu, Jan 8, 2009 at 1:04 AM, Vicky  wrote:
>
> I using the django to generate xml and to fetch datas from database.
> When i run it the response is too slow. it takes nearly 4sec to load
> the page. So what can i do to make my program more efficient. Plse
> tell me some things to avoid so that it becomes faster

First thing you need to do is figure out where the slowness
originates.  Is it from DB access? XML generation?

If it's from DB access, include the code you're using to fetch data.
If XML generation, likewise.



-- 
---
David Zhou
da...@nodnod.net

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Django too slow

2009-01-07 Thread Vicky

I using the django to generate xml and to fetch datas from database.
When i run it the response is too slow. it takes nearly 4sec to load
the page. So what can i do to make my program more efficient. Plse
tell me some things to avoid so that it becomes faster
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---