How to force Postgres to use index on ILIKE

Поиск
Список
Период
Сортировка
От Andrus
Тема How to force Postgres to use index on ILIKE
Дата
Msg-id e620mg$15jr$1@news.hub.org
обсуждение исходный текст
Ответы Re: How to force Postgres to use index on ILIKE  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
I have UTF-8 Postgres 8.1 database on W2K3

Query

SELECT toode, nimetus
FROM toode
WHERE toode      ILIKE  'x10%' ESCAPE '!'
ORDER BY UPPER(toode     ),nimetus  LIMIT 100

runs 1 minute in first time for small table size.

Toode field type is CHAR(20)

How to create index on toode field so that query can use  it ?




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

Предыдущее
От: Chris Beecroft
Дата:
Сообщение: Some queries starting to hang
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Some queries starting to hang