Re: Query much slower when run from postgres function
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Query much slower when run from postgres function |
| Дата | |
| Msg-id | 27649.1236616294@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Query much slower when run from postgres function (Mario Splivalo <mario.splivalo@megafon.hr>) |
| Ответы |
Re: Query much slower when run from postgres function
Re: Query much slower when run from postgres function Re: Query much slower when run from postgres function |
| Список | pgsql-performance |
Mario Splivalo <mario.splivalo@megafon.hr> writes:
> Now I'm confused, why is 'sql' function much slower than 'direct' SELECT?
Usually the reason for this is that the planner chooses a different plan
when it has knowledge of the particular value you are searching for than
when it does not. I suppose 'service_id' has a very skewed distribution
and you are looking for an uncommon value?
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера