Re: parameterized LIKE does not use index

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: parameterized LIKE does not use index
Дата
Msg-id 200506221408.55942.josh@agliodbs.com
обсуждение исходный текст
Ответ на parameterized LIKE does not use index  (Kurt De Grave <Kurt.DeGrave@student.kuleuven.ac.be>)
Список pgsql-performance
Kurt,

> Of course, I could modify the application and send different SQL
> depending on which case we're in or just constructing a query with a
> literal each time, but is there a way to add a hint to the SQL that
> would cause the query to be re-planned if it's a case that could use the
> index?  Or can I convince the (Perl) driver to do so?

There should be an option to tell DBD::Pg not to cache a query plan.
Let's see ....

yes.  pg_server_prepare=0, passed to the prepare() call.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

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

Предыдущее
От: Kurt De Grave
Дата:
Сообщение: parameterized LIKE does not use index
Следующее
От: Tobias Brox
Дата:
Сообщение: Re: Performance Tuning Article