Re: In re: improving async support in psycopg
Daniele Varrazzo <[email protected]> Thu, 8 Apr 2010 13:51:39 +0100
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Mar 31, 2010 at 11:07 AM, Alexander Sabourenkov <[email protected]> wrote: > Hello. > > I have already done a similar work, though much more invasive and resulting > in what amounts to a fork of psycopg2. Alexander, your library is really interesting, I didn't know it. I'd appreciate if you could think about how to integrate coev with the "green" psycopg branch. Other libraries have a Python roundtrip every time a libpq call blocks. It seems your library wouldn't need that, but currently I am only expecting a Python callback to register the wait function. If you have an idea about how to allow a C callback to be registered in psycopg, your library could benefit of the whole nonblocking I/O support and still avoid the Python overhead. This, and any other comments, are welcome. Regards, -- Daniele