Re: LIKE optimization

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LIKE optimization
Дата
Msg-id 12758.979662827@sss.pgh.pa.us
обсуждение исходный текст
Ответ на LIKE optimization  (Nabil Sayegh <nsmail@sayegh.de>)
Список pgsql-novice
Nabil Sayegh <nsmail@sayegh.de> writes:
> Although the two queries should be equivalent the second takes about 4s
> and the first takes almost 2 MINUTES.

It's impossible to say anything intelligent about this with only the
text of the queries to go on.  What indexes do you have on these tables?
What does EXPLAIN show as the query plan for each query?

Oh, and have you done a VACUUM ANALYZE recently on these tables?

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: log file?
Следующее
От: Nabil Sayegh
Дата:
Сообщение: Re: LIKE optimization