| От | Peter T Mount |
|---|---|
| Тема | Re: using the same connection? |
| Дата | |
| Msg-id | 981535068.3a81095ccf8a9@webmail.retep.org.uk обсуждение исходный текст |
| Ответ на | using the same connection? (Mathieu Dube <mathieu_dube@videotron.ca>) |
| Список | pgsql-hackers |
Quoting Mathieu Dube <mathieu_dube@videotron.ca>: > Hi y'all, > Is it a bad idea for an app to keep just a couple of connections to a > database, put semaphore/mutex on them and reuse them all through the > program? > Of course I would check if their PQstatus isnt at CONNECTION_BAD and > reconnect if they were... > I need some opinions on that practice... In the Java world it's called ConnectionPooling and is standard practice, especially with Servlets/JSP/EJB's. Peter -- Peter Mount peter@retep.org.uk PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/ RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера