Re: [PATCH] Proposal: connection pooling with psycopg2

2008-11-16 Thread Malcolm Tredinnick
On Sun, 2008-11-16 at 11:57 -0800, jothan wrote: > PsycoPg2 with a remote DB over a WAN is deadly slow. Since PsycoPg2 > supports connection pooling, I have decided to patch the Django DB > adapter to use this. I could see this implemented as below (this is a > very rough draft). For example, min

[PATCH] Proposal: connection pooling with psycopg2

2008-11-16 Thread jothan
PsycoPg2 with a remote DB over a WAN is deadly slow. Since PsycoPg2 supports connection pooling, I have decided to patch the Django DB adapter to use this. I could see this implemented as below (this is a very rough draft). For example, min and max connections should not be hardcoded. Let me know