MySQLdb and threads
Gillou
nospam at bigfoot.com
Mon Nov 4 16:50:26 EST 2002
> >>>>> "Gillou" <nospam at bigfoot.com> (G) writes:
>
> G> Hi,
> G> I plan to make SQL queries in different threads of an application using
> G> MySQLdb.
> G> Can I use the same Connection object in all threads (each thread having
its
> G> own cursor) for the queries ? Or should I use a different Connection
object
> G> for each thread ?
>
> The doc says:
>
[SNIP]
> For threaded applications, try using a connection pool. This can be done
> using the Pool module.
Many thanks Piet for this enlightenment,
Where did you find the Pool module you're writing of ?
I didn't find it in the standard Python distro (2.1.3) nor with google.
Cheers
--Gilles
>
> --
> Piet van Oostrum <piet at cs.uu.nl>
> URL: http://www.cs.uu.nl/~piet [PGP]
> Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list