Re: Query speed

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: Query speed
Дата
Msg-id m3wullhu3l.fsf@varsoon.wireboard.com
обсуждение исходный текст
Ответ на Query speed  (RFLM101@aol.com)
Список pgsql-general
RFLM101@aol.com writes:

> When I issue a select* from table where column = part,
> query speed is great, however, changing the where clause to "where column
> like 'part%'" the explain analyze shows the database doing a full table scan
> and not utilzing the index which slows the query speed.

Unless you're in the "C" locale, LIKE queries currently won't use an
index.  This is apparently not easy to fix--if you search the list
archives you'll find some discussions on it.

-Doug

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

Предыдущее
От: RFLM101@aol.com
Дата:
Сообщение: Query speed
Следующее
От: am@fx.ro
Дата:
Сообщение: Re: postmaster.pid