[sqlalchemy] Re: Forks() and Alchemy

2008-09-20 Thread Mariano Cortesi
Cono On 20/09/2008, at 01:21, "Bobby Impollonia" <[EMAIL PROTECTED]> wrote: > > If you have a session and then you fork, the child process is going to > try to use the same session but that won't work because connections > can't be floated across processes. If you call dispose() on the engine

[sqlalchemy] Re: Forks() and Alchemy

2008-09-19 Thread Bobby Impollonia
If you have a session and then you fork, the child process is going to try to use the same session but that won't work because connections can't be floated across processes. If you call dispose() on the engine in the child process after forking (e.g., metadata.bind.dispose() ), then the child will