On Monday 06 March 2006 21:48, Bojan Smojver wrote:
> I'm trying to figure out how mod_dbd works and from what I can see, it
> enables:
>
> - connection pool configured inside VH (and above) only
> - one connection string (i.e. DBDParams) per VH
>
> If the above is correct, wouldn't it be better if it allowed "named"
> connections, so that module writers can keep simultaneous connections
> (i.e. identified by some kind of alias or even connection string)
> opened to many databases?

That has indeed been discussed, and might happen sometime.
Though of course too many different connections are going to mean
quite a load on the server!

> It would also be handy if connections could be configured per
> directory/location. It would enable module writers to have a notion of
> different "applications" for different URIs inside the virtual host,
> with completely different set of database connections they can use.

No.  That would be appropriate to applications, not to mod_dbd itself.
Persistent resources have to be tied to the server_rec.

-- 
Nick Kew

Reply via email to