Re: Terribly slow query with very good plan?

Поиск
Список
Период
Сортировка
От Les
Тема Re: Terribly slow query with very good plan?
Дата
Msg-id CAKXe9UD4t=f6r-pwT=-CmsmKxn1F2ojDWGBE1ctkoA27cESEOw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Terribly slow query with very good plan?  (Les <nagylzs@gmail.com>)
Список pgsql-performance


First of all, it CANNOT start with '%'. This is a fact and this fact can be determined by analyzing the query. Something that the query planner should do, right?

Second argument: the same query is also slow with the ^@ operator...

Oh I see, the query planner does not know that there will be no % characters in file and folder names.

On second thought, it does not explain why it is also slow with the ^@ operator.

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

Предыдущее
От: Les
Дата:
Сообщение: Re: Terribly slow query with very good plan?
Следующее
От: Nick Cleaton
Дата:
Сообщение: Re: Terribly slow query with very good plan?