| От | Mario Splivalo |
|---|---|
| Тема | Forcing postgres NOT to use sequential scan, trough JDBC |
| Дата | |
| Msg-id | 49B0FFE4.2030202@megafon.hr обсуждение исходный текст |
| Ответы |
Re: Forcing postgres NOT to use sequential scan, trough JDBC
Re: Forcing postgres NOT to use sequential scan, trough JDBC |
| Список | pgsql-jdbc |
How do I tell postgres not to use sequential scan, trough jdbc?
I tried to include 'SET enable_seqscan TO false;' at the begining of the
plpgsql function, but that seems to work only if I call the function
trough the psql, and only for the subsequent calls in the current
session. I 'know' that postgres is using sequential scan because
function call takes cca 400ms. When I force postgres not to use
sequential scan, the function takes around 5-10ms.
I even tried, on the same connection, to issue 'SET enable_seqscan TO
false;' trough jdbc before I call my function, but execution time is
still around 400ms.
Mike
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера