Re: PHP performance problems with postgres

Поиск
Список
Период
Сортировка
От Colin 't Hart
Тема Re: PHP performance problems with postgres
Дата
Msg-id 9n7hg0$2j2c$1@news.tht.net
обсуждение исходный текст
Список pgsql-general
Jon asks:

> Can anyone shed any light on why using like instead of = on one column
> should cause such a significant slow down (45secs / 0.4 secs)?

A query involving a LIKE operator can only use an index if the wildcard(s)
are placed after an initial constant string. The initial constant string
is what is looked up in the index; wildcard matching is done with either
a scan of the relevant part of the index or with a full table scan.

Cheers,

Colin



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

Предыдущее
От: "J.H.M. Dassen (Ray)"
Дата:
Сообщение: Re: problem with selects based on dates
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Bug in createlang?