| От | David Wall |
|---|---|
| Тема | Re: Connection Idle in transaction |
| Дата | |
| Msg-id | 06f501c41e93$5426a0e0$3201a8c0@rasta обсуждение исходный текст |
| Ответ на | Re: Connection Idle in transaction ("Michael Nonemacher" <Michael_Nonemacher@messageone.com>) |
| Список | pgsql-jdbc |
> In my application, connections come from a connection pool that I > control, so I set autocommit to true when adding or returning > connections to the pool, and set it to false when retrieving connections > from the pool. The connections that are sitting idle in the pool aren't > actually "idle in transaction". While this may work, it seems rather expensive since I believe turning on and off the autocommit feature actually sends a message from the JDBC driver to the backend server. It's probably not a big deal, but it seems like two more roundtrips to the DB each time a connection is used is a bit much. David
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера