Re: b-tree index performance

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: b-tree index performance
Дата
Msg-id 20061215114109.GG958@svana.org
обсуждение исходный текст
Ответ на b-tree index performance  ("Yonatan Ben-Nes" <yonatan@epoch.co.il>)
Ответы Re: b-tree index performance  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
On Fri, Dec 15, 2006 at 01:13:00PM +0200, Yonatan Ben-Nes wrote:
> Hi all,
>
> I was wondering does the b-tree index performance change when it's
> implemented on different data types fields? is it better to use one of them
> instead of the other for (=) comparisons?
> I'm especially interested between INT8 and TEXT data types.

The difference in performence will be determined by the cost of
comparison. The cost of comparing strings is much higher than for
integers, so it will be slower.

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Вложения

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

Предыдущее
От: "Yonatan Ben-Nes"
Дата:
Сообщение: b-tree index performance
Следующее
От: Ragnar
Дата:
Сообщение: Re: Needed files - embedded postgres