Re: IN vs EXIIST

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: NUMERIC and arithmetics
Следующее
От: "Ian Harding"
Дата:
Сообщение: Memory Errors...