| От | Jean-Christian Imbeault |
|---|---|
| Тема | Re: IN vs EXIIST |
| Дата | |
| Msg-id | 3D89D533.7000009@mega-bucks.co.jp обсуждение исходный текст |
| Ответ на | IN vs EXIIST (Jean-Christian Imbeault <jc@mega-bucks.co.jp>) |
| Список | pgsql-general |
Jochem van Dieten wrote: > > Sorry, not behind the console at the moment. Try either: Ok :) I tried both new versions and they work great. But ... they are not faster than the IN version. They run at exactly the same speed. Another thing is that the IN query and yours don't seem to be so dependent on the DB having been vacuum analyzed while the query with the EXISTS does (it goes from 15 secs to 5secs after vacuuming) I guess using IN in this case is not making the query slow. In case it's important the table contains 16800 rows and returns 300 matches. I'll be sticking with my IN query ... Jc
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера