I am spawning threads from master thread which has a transactional db.
These threads do not write into the db, but perform read-only
operations. Inside the thread, currently there's no access to the
session data from the parent thread. Specifically:

def main():
 Session.query(MyTable).all() # returns everything from MyTable
 t = threading.Thread(target=_thread_func, args=())
 t.start()
 t.join()

def _thread_func():
   Session.query(MyTable).all() # returns nothing

Thanks,
-Ganesh

-- 
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 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to