Re: Django connection pooling using sqlalchemy connection pool

2012-07-12 Thread Javier Guerra Giraldez
On Wed, Jul 11, 2012 at 6:45 PM, Russell Keith-Magee wrote: > There is a reason that Django doesn't manage connection pooling -- > it's because it's handled quite well by third party tools like pgPool. is there any similar tool for mysql? i've seen a few, but doesn't look so well accepted as Pos

Re: Django connection pooling using sqlalchemy connection pool

2012-07-11 Thread Russell Keith-Magee
On Thu, Jul 12, 2012 at 3:37 AM, Anand Agarwal wrote: > As you know, Django uses new database connection for each request. This > works well initially. However as the load on the server increases, > creating/destroying connections to database starts taking significant amount > of time. You will f

Django connection pooling using sqlalchemy connection pool

2012-07-11 Thread Anand Agarwal
ch requires patching Django which we wanted to avoid. Hence we created a small function that we import in one of __init__.py (or models.py) (i.e. some file which gets imported early in the application startup). Here is more detail on how we do it at BootStrapToday<http://blog.bootstraptoday.com/201