Re: Designing a better connection pool for psycopg3

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: Designing a better connection pool for psycopg3
Дата
Msg-id CA+mi_8btFL9=N4m_CFRMFD6QpJyAFjfqXentHkLoAfVYE2xQog@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Designing a better connection pool for psycopg3  (Magnus Hagander <magnus@hagander.net>)
Список psycopg
On Mon, 18 Jan 2021 at 15:39, Magnus Hagander <magnus@hagander.net> wrote:

> And if you want to avoid the "timeout based error" in the client,
> adding a flag to the pool saying "this pool is currently unhealthy" in
> this case would work, and then whenever someone tries to get a
> connection out of this pool it can throw an exception immediately
> instead of waiting for a timeout to happen.

This is a good idea, thank you :)

-- Daniele



В списке psycopg по дате отправления:

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: Re: Designing a better connection pool for psycopg3
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Designing a better connection pool for psycopg3