So, that's the point,  my tcp server is single process.

Because I have a global dict keep active socket connections, where key is 
cell device token, and value is the active socket associated with the 
device.

the dict cannot be finely shared between multiple processes..

So, I just pull out db operation and throw into a process pool which only 
handle db operation.

在 2014年3月16日星期日UTC+8上午4时14分50秒,Michael Bayer写道:
>
>
> On Mar 14, 2014, at 9:18 PM, Ni Wesley <nis...@gmail.com <javascript:>> 
> wrote: 
>
> > Seems sqlalchemy engine pool uses thread, eh? 
>
> SQLAlchemy doesn’t spawn any threads, it only provides library functions 
> which do the thing you ask it to do, synchronously. 
>
>
>
>
>

-- 
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.

Reply via email to