Re: something about django mysql database long connection

2011-07-15 Thread Kejun He
hi, I found a method to make a persistent connection to database. from django.core import signals from django.db import close_connection signals.request_finished.disconnect(close_connection) <== I have tested, it work normally! regards, he On Fri, Jul 15, 2011 at 9:44 AM, Kejun He wrote:

Re: something about django mysql database long connection

2011-07-14 Thread Kejun He
Hi, I will look the DBUtils imformation first. Thank you very much regards, he On Thu, Jul 14, 2011 at 11:58 AM, Jian Chang wrote: > Try DBUtils > http://www.webwareforpython.org/DBUtils/Docs/UsersGuide.html > > 2011/7/13 Kejun He > >> hi, >> I am sorry. My English is very bad. >> >> Yes, i w

Re: something about django mysql database long connection

2011-07-13 Thread Jian Chang
Try DBUtils http://www.webwareforpython.org/DBUtils/Docs/UsersGuide.html 2011/7/13 Kejun He > hi, > I am sorry. My English is very bad. > > Yes, i want to make persistent databases connection on each session. > > > and yesterday i try to modify the code on > "site-packages\django\db\__init__.py

Re: something about django mysql database long connection

2011-07-12 Thread Kejun He
hi, I am sorry. My English is very bad. Yes, i want to make persistent databases connection on each session. and yesterday i try to modify the code on "site-packages\django\db\__init__.py" def close_connection(**kw

Re: something about django mysql database long connection

2011-07-11 Thread Cal Leeming [Simplicity Media Ltd]
On Mon, Jul 11, 2011 at 4:49 AM, oops wrote: > hi, > Now, i am doing a django project, and use models to do all operation > about data in mysql db. > > and i think that it would connect to database whenever do some > operation like 'XXX.objects.all()' , may be it would cast much of > resource on

something about django mysql database long connection

2011-07-11 Thread oops
hi, Now, i am doing a django project, and use models to do all operation about data in mysql db. and i think that it would connect to database whenever do some operation like 'XXX.objects.all()' , may be it would cast much of resource on database connection. So i need a connection never being des