On 4/9/07, Michael Bayer <[EMAIL PROTECTED]> wrote:
> > I tried to build this already but I cannot figure out how to assign
> > the shared connection to a thread. I always get 'No connection
> > defined'.
>
> if youre on py2.4 check out threading.local().

Just to be clear here, as I'm also having issues with SQA and
threading : a connection is per-thread, so if I have 10 worker threads
that each read/write to the db, I need to manually create 10
connections and pass them into each thread? What would the elegant way
to do this be?

Thanks,
- Dave

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to