Re: Unexplainable execution time difference between two testfunctions...one using IF (SELECT COUNT(*) FROM...) and the other using IFEXISTS (SELECT 1 FROM...)
В списке pgsql-performance по дате отправления:
| От | Tomas Vondra |
|---|---|
| Тема | Re: Unexplainable execution time difference between two testfunctions...one using IF (SELECT COUNT(*) FROM...) and the other using IFEXISTS (SELECT 1 FROM...) |
| Дата | |
| Msg-id | 3fa6c3a7-e85e-8dc5-35b5-70b06f86ffd0@2ndquadrant.com обсуждение |
| Ответ на | Re: Unexplainable execution time difference between two testfunctions...one using IF (SELECT COUNT(*) FROM...) and the other using IFEXISTS (SELECT 1 FROM...) (Pavel Stehule <pavel.stehule@gmail.com>) |
| Ответы |
Re: Unexplainable execution time difference between two testfunctions...one using IF (SELECT COUNT(*) FROM...) and the other using IFEXISTS (SELECT 1 FROM...)
|
| Список | pgsql-performance |
On 04/17/2018 07:17 AM, Pavel Stehule wrote: > Hi > > 2018-04-16 22:42 GMT+02:00 Hackety Man <hacketyman@gmail.com > <mailto:hacketyman@gmail.com>>: > > ... > > A support of parallel query execution is not complete - it doesn't work > in PostgreSQL 11 too. So although EXISTS variant can be faster (but can > be - the worst case of EXISTS is same like COUNT), then due disabled > parallel execution the COUNT(*) is faster now. It is unfortunate, > because I believe so this issue will be fixed in few years. > None of the issues seems to be particularly related to parallel query. It's much more likely a general issue with planning EXISTS / LIMIT and non-uniform data distribution. regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера