Re: Problem with psycopg2 and asyncio

Поиск
Список
Период
Сортировка
Искать
От
Frank Millman
Тема
Re: Problem with psycopg2 and asyncio
Дата
Msg-id
B721C07E00FE407DB1729AE82183B405@FrankLaptop
Ответ на
Список
Дерево обсуждения
Problem with psycopg2 and asyncio "Frank Millman" <frank@chagford.com>
Re: Problem with psycopg2 and asyncio Federico Di Gregorio <fog@dndg.it>
Re: Problem with psycopg2 and asyncio "Frank Millman" <frank@chagford.com>
Re: Problem with psycopg2 and asyncio Daniele Varrazzo <daniele.varrazzo@gmail.com>
Re: Problem with psycopg2 and asyncio "Frank Millman" <frank@chagford.com>
Re: Problem with psycopg2 and asyncio Daniele Varrazzo <daniele.varrazzo@gmail.com>
Re: Problem with psycopg2 and asyncio "Frank Millman" <frank@chagford.com>
Re: Problem with psycopg2 and asyncio "Frank Millman" <frank@chagford.com>
Re: Problem with psycopg2 and asyncio Federico Di Gregorio <fog@dndg.it>
Re: Problem with psycopg2 and asyncio "Frank Millman" <frank@chagford.com>
Re: Problem with psycopg2 and asyncio "Robellard, Michael" <mike@robellard.com>
Re: Problem with psycopg2 and asyncio "Frank Millman" <frank@chagford.com>
Re: Problem with psycopg2 and asyncio Dorian Hoxha <dorian.hoxha@gmail.com>
On 02/03/16 09:48, Frank Millman wrote:
 
>
> It boils down to the fact that psycopg running in one thread is blocking another thread from executing. Running pyodbc and sqlite3 in exactly the same conditions do not have this effect. > Therefore my (quite possibly wrong) suspicion is that the GIL is not being released timeously, or at least psycopg is doing something different from the others.
>
 
It occurs to me that there is one difference which could be significant. As far as I know, pyodbc and sqlite do not use sockets to communicate with the database, but psycopg does. Whether that could interfere with the socket-handling in the asyncio thread I have no idea, but it is a possibility.
 
Frank
 
В списке psycopg по дате отправления
От: Frank Millman
Дата:
От: Federico Di Gregorio
Дата:
FAQ