MySQLdb multithreaded
Skip Montanaro
skip at pobox.com
Wed May 7 16:37:13 EDT 2003
Greg> Right, but unless you implement locking in your app, the threads
Greg> can't share the connection because you don't know when each thread
Greg> might be accessing the connection. So, unless you are already
Greg> explicitly doing locking, the definition is exactly right. For
Greg> anyone else still reading, you might check out Andy Dustman's Pool
Greg> module that will allow the type of behavior Skip describes.
Yes, I use the Queue module. Take out a connection to use it and put it
back when through. What advantages does Andy's Pool module provide?
Skip
More information about the Python-list
mailing list