mysqldb + multi-threading
Bryan Olson
fakeaddress at nowhere.org
Fri Sep 8 23:53:59 EDT 2006
skip at pobox.com wrote:
> Bryan> Go with your gut. Python threads are reasonably portable, and
> Bryan> work well on modern MS-Windows.
>
> >> Maybe ignore your gut and read the documentation. ;-)
>
> Bryan> What in the documentation do you think answers the question?
>
> The part where it says that if MySQLdb.threadsafety == 1 it's not safe to
> share connections.
You can't share them among processes either, so I don't see
any advantage either way on that.
Besides his database library, the standard Python distribution
comes with everything needed to build portable multi-threaded
socket servers, in particular, one that runs on the O.P.'s
Windows platform. The same is not true of multi-process servers.
--
--Bryan
More information about the Python-list
mailing list