Michael Owens
mike at mikesclutter.com
Mon Nov 3 18:10:09 EST 2003
As long as you protect sessions within threads, there shouldn't be any problems. But the thread issues are really just passed on to the underlying database extension. On Monday 03 November 2003 10:31 am, Michael C. Neel wrote: > Wow, this is pretty cool - I see requests for items like these a lot on > this list so it should be helpful to quite a few. I have one question > though... > > > - Shared database connections. There is a simple class which > > wraps the DBA API > > connection objects for MySQL, PostgreSQL, and SAPDB. It > > just adds enough > > code to transparently recover from a connection timeout. > > Does this work for 3.x and apache using a threaded mpm like worker? > I've had trouble getting MySQLdb to share connections/cursors from a > pool in the past since the thread level of the API is 1 (no threaded > cursors). I had planned to work on this in the coming weeks, but no > since re-inventing the wheel =) > > Mike > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python
|