Re: Under what circumstances does PreparedStatement use stored plans?
В списке pgsql-jdbc по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Under what circumstances does PreparedStatement use stored plans? |
| Дата | |
| Msg-id | 24308.1081877008@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Under what circumstances does PreparedStatement use stored plans? (James Robinson <jlrobins@socialserve.com>) |
| Ответы |
Re: Under what circumstances does PreparedStatement use stored plans?
|
| Список | pgsql-jdbc |
James Robinson <jlrobins@socialserve.com> writes:
> Anyone know off the top of their heads any particular resource limits
> server-prepared queries cost? Should any attempt at this scheme take
> into account any particular upper-limit of prepared queries?
There's no hard upper limit. The cost is basically the backend memory
space needed to store the query parse and plan trees, which of course
depends quite a lot on the complexity of the query, but I'd think we'd
be talking a few kilobytes for typical queries. So you could probably
store order-of-100 prepared plans without thinking about it, even in a
system with a lot of active backends.
regards, tom lane
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера