Hi All,
So, one of the projects I'm playing with at the moment is a big ball of
asynchronous networking (tonnes of protocols, some tcp, some multicast)
which I want to stick a webapi onto (normal requests + websocket) and
probably do some database interaction with.
So, aside from figuring out which async path to go (twisted, tornado,
tulip or good old fashioned asyncore), I have some concerns about
database interaction.
First question: I'm guessing I should do all database access in a
spawned off thread, lest it blocks?
Second question: if I end up using the ORM, I guess a safe approach
would be to expunge the objects from the session before I return them
from the thread that does the db interaction?
Any other advice people have in this area?
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.