| От | Brett Henderson |
|---|---|
| Тема | Re: Prepared Statement Query Planning |
| Дата | |
| Msg-id | 4A9A194D.9030101@bretth.com обсуждение исходный текст |
| Ответ на | Re: Prepared Statement Query Planning (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-jdbc |
Thanks for the tip. I haven't tried the temp table queries yet. They're next.Brett Henderson <brett@bretth.com> writes:However I don't think it will work in my case. I currently have three different ways of selecting records, 1. by timestamp range (as in my initial example), 2. by records in a temp table, and 3. unrestricted. The unrestricted example isn't an issue because a full table scan is appropriate in that case. However the temp table one is a different matter.In the case of a temp table you have to ANALYZE the temp table after filling it; otherwise the planner is working completely blind as to what is in it. (autovacuum will not do this for you...)
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера