On Saturday 30 March 2002 12:44 am, Martin Virtel wrote:
> Chuck Esterbrook wrote:
> > * Has anyone used DBPool in MiddleKit?
>
> I thought about pooling DB connection to MySQL, but then I noted that
> what my servelets needed was not a DB connection, but a MiddleKit
> Store (containing a DB Connection). I think this could be true for
> any WW app that uses MiddleKit. Pooling the Store took about two
> thirds off the execution time of the servelets (as recorded in the
> Activity Log).
>
> M

Well now you can have the both of best worlds: SQLObjectStore will use 
DBPool if you specify a new setting in Foo.mkmodel/Settings.config:

{
        'SQLConnectionPoolSize': 25,
}

My "fetching" benchmark got a healthy 15-20% speed up from creating a 
pool (on Linux/Py 2.1/MySQLdb 0.9.1).

This is in cvs only.


-Chuck

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to