Re: 335 times faster (!)

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: 335 times faster (!)
Дата
Msg-id 20030203095451.Q90968-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на 335 times faster (!)  (Mikael Carneholm <carniz@spray.se>)
Список pgsql-general
On Mon, 3 Feb 2003, Mikael Carneholm wrote:

> When searching for a specific row on the primary key (type: bigint),
> the search took about 6,5 seconds. The column has a default btree
> index as created by the primary key constraint. However, when
> searching for the same row on one of it's columns (type: text) which
> has a functional index on lower(column name), the same row was
> retrieved in 19ms! That's ~335 times faster!

Did you remember to cast the constant into bigint?  If not, it probably
ignored the bigint index and did a table scan.


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

Предыдущее
От: Arjen van der Meijden
Дата:
Сообщение: Re: Printer setup
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Drop constraint in PostgreSQL 7.1.2