Re: [cx-oracle-users] passing a connection to a process?
Brought to you by:
atuining
From: Chuck W. <chu...@ch...> - 2010-06-20 18:47:22
|
Thanks for your response. ---- Amaury Forgeot d'Arc <ama...@gm...> wrote: > Another solution is to use the "multiprocessing" module: a > multiprocessing.Pool keeps the spawned processes alive between jobs, > and you can cache the connection in a global variable. Can you please post an example with the multiprocessing module. My understanding is that objects have to be picklable to spawn processes using multi-processing. Maybe I am missing something here. > Did you actually try? The compression functions can truly run > concurrently in several threads, since > they care to release the Python "Global Interpreter Lock". No, I did not try. Thanks. |