Re: b-tree index performance

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: b-tree index performance
Дата
Msg-id 20061215135000.GK958@svana.org
обсуждение исходный текст
Ответ на Re: b-tree index performance  (Ron Johnson <ron.l.johnson@cox.net>)
Ответы Re: b-tree index performance  (Ron Johnson <ron.l.johnson@cox.net>)
Список pgsql-general
On Fri, Dec 15, 2006 at 07:44:16AM -0600, Ron Johnson wrote:
> > 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.
>
> And comparing INT8 is more expensive on a 32-bit system.

The difference between int4 and int8 is probably negligable.

> Since TEXT is totally variable, is there a big difference in TEXT vs
> CHAR(8)?

Nothing measurable I'd think. It's probably the same code.

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 по дате отправления:

Предыдущее
От: Henrik Zagerholm
Дата:
Сообщение: Re: Needed files - embedded postgres
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: b-tree index performance