Re: [sqlalchemy] What is a good pattern for using sqlalchemy+psycopg2+gevent in a pylons app

2010-06-25 Thread Yang Zhang
On Fri, Jun 25, 2010 at 6:41 AM, Michael Bayer wrote: > That's as deep as my thought goes on this and its all based on hypotheticals > since I've never used twisted or greenlets or anything like that.    Sorry if > I'm totally off on how gevent/greenlets work, the linked documents didn't > real

Re: [sqlalchemy] What is a good pattern for using sqlalchemy+psycopg2+gevent in a pylons app

2010-06-25 Thread Michael Bayer
On Jun 25, 2010, at 3:32 AM, Yang Zhang wrote: > On Fri, Jun 4, 2010 at 7:16 AM, afrotypa wrote: >> Hi All, >> >> >> For a while I have been toying with the idea of developing/running a >> database (postgresql backend) driven WSGI app using an async python >> WSGI server such as gevent. >> >>

Re: [sqlalchemy] What is a good pattern for using sqlalchemy+psycopg2+gevent in a pylons app

2010-06-25 Thread Yang Zhang
On Fri, Jun 4, 2010 at 7:16 AM, afrotypa wrote: > Hi All, > > > For a while I have been toying with the idea of developing/running a > database (postgresql backend) driven WSGI app using an async python > WSGI server such as gevent. > > Now that the newer psycopg2 (>=2.2.0) drivers provide corouti

[sqlalchemy] What is a good pattern for using sqlalchemy+psycopg2+gevent in a pylons app

2010-06-04 Thread afrotypa
Hi All, For a while I have been toying with the idea of developing/running a database (postgresql backend) driven WSGI app using an async python WSGI server such as gevent. Now that the newer psycopg2 (>=2.2.0) drivers provide coroutine support (via a hook which makes c extension database driver