On Mon, 2009-02-23 at 20:23 -0800, A B wrote:
> I need to use a db backend (Sybase) which is not supported by Django.
> I don't need to use the Django ORM but would like Django to maintain a
> pool of open db connections so that I don't have to make a new
> connection every time I need to run a query (similar functionality
> offered by Apache::DBI in modperl). Is this possible? Thanks.

Django doesn't implement anything like that, since it's a bit out of
scope. Partly (primarily?) because long-term lifecycle management is
difficult to get right, particularly for a shared-nothing implementation
like Django where process lifecycle is controlled by the web server.

The solution is to have a daemon running that manages the shared
connections and which understands the normal connection protocol and
returns an existing connection when needed. I'm talking something like
pgpool for PostgreSQL. No idea if anything similar exists for Sybase.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to