Kumar McMillan escreveu:
On Tue, May 20, 2008 at 11:32 AM, Luis Bruno <[EMAIL PROTECTED]> wrote:
I must have missed this: why connect-and-bind() on each request?
because otherwise I get an error similar to above: that no engine has
been defined for the current thread.

Yes, I vaguely recall a similar error when playing with SQLite and a multi-threaded WSGI server.

I can't recall if create_engine(..., strategy="threadlocal") was meant for these cases; I apologize in advance if the suggestion is stupid: I can't understand if SQLAlchemy meant to deal with multithreading issues or if it punts to the app developer.

I don't create connections (or pools) myself; I'm using the magic Session.mapper() functionality instead of orm.mapper(), so I don't know these details.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to