MySQL Forums
Forum List  »  Connector/Python

Re: Nonblocking excute()
Posted by: Dariusz Suchojad
Date: May 01, 2009 04:47AM

> Anybody know the way to implement nonblocking
> execute() or callproc() at mysqldb?

In short, the calling thread will always block. It's just how the MySQL protocol
works. It's a synchronous API and you can't just say to be notified when the
results are ready, not from the calling thread at least.

That said, you can always use multiple threads or Twisted (www.twistedmatrix.com)
deferreds to implement a non-blocking application.

--
Dariusz Suchojad

gefira / the knowledge company
http://www.gefira.pl

Options: ReplyQuote


Subject
Written By
Posted
March 23, 2009 12:32PM
Re: Nonblocking excute()
May 01, 2009 04:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.