On Nov 10, 2003, at 3:45 PM, Frank Barknecht wrote:
Hallo,
Ian Bicking hat gesagt: // Ian Bicking wrote:

FWIW, my understanding is that MySQL connections are quick to make and
you don't gain much from pooling (at least if the server is on the same
host as the client). So it might not be so bad to avoid pooling
connections entirely. I know this isn't true for a lot of other
databases, and I don't know much time Postgres connections take, but
maybe other people have run their own experiments (e.g., running a
thousand simple queries, once with a single connection and another time
with new connections for each query).

Is this possible (easily) with SQLObject? I naively tried the keyword argument "pool=0" but that didn't work. ;) Or do I need to inherit my own connection?

Yes, you'll need to subclass MySQLConnection. I can't remember the exactly method, but it's something like getConnection() (and the sister method for returning a connection to the pool).


--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to