Re: mysqldb + multi-threading

2006-09-09 Thread skip
> "Bryan" == Bryan Olson <[EMAIL PROTECTED]> writes: Bryan> [EMAIL PROTECTED] 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

Re: mysqldb + multi-threading

2006-09-09 Thread hg
hg wrote: > Hi, > > I am writing a transaction server (socket-based) under windows. > > I use mysqldb to log info into MySQL. > > It is all working and I need now to decide whether to use forks > (CreateProcess I guess) or threads. > > I saw in another thread that some db engines did have issue

Re: mysqldb + multi-threading

2006-09-08 Thread Bryan Olson
[EMAIL PROTECTED] 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 pa

Re: mysqldb + multi-threading

2006-09-08 Thread skip
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.threads

Re: mysqldb + multi-threading

2006-09-08 Thread Bryan Olson
[EMAIL PROTECTED] wrote: > Bryan> MySQL has its own process. It doesn't know nor care whether your > Bryan> application makes connections from different processes or > Bryan> different threads in the same process. > > Yes, but on the client side the data structures may or may not be >

Re: mysqldb + multi-threading

2006-09-08 Thread skip
Bryan> MySQL has its own process. It doesn't know nor care whether your Bryan> application makes connections from different processes or Bryan> different threads in the same process. Yes, but on the client side the data structures may or may not be thread-safe. A session on my web se

Re: mysqldb + multi-threading

2006-09-08 Thread Bryan Olson
hg wrote: > I am writing a transaction server (socket-based) under windows. > > I use mysqldb to log info into MySQL. > > It is all working and I need now to decide whether to use forks > (CreateProcess I guess) or threads. > > I saw in another thread that some db engines did have issues with be

mysqldb + multi-threading

2006-09-08 Thread hg
Hi, I am writing a transaction server (socket-based) under windows. I use mysqldb to log info into MySQL. It is all working and I need now to decide whether to use forks (CreateProcess I guess) or threads. I saw in another thread that some db engines did have issues with being called from threa