Re: Does this matter?

Поиск
Список
Период
Сортировка
От Philip Hallstrom
Тема Re: Does this matter?
Дата
Msg-id 20021101125052.Y6303-100000@cypress.adhesivemedia.com
обсуждение исходный текст
Ответ на Re: Does this matter?  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Does this matter?  (Andrew Sullivan <andrew@libertyrms.info>)
Re: Does this matter?  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
> Wei,
>
> > Does it make a performance difference if I use a char(20) or a char(36)
> > as the primary key? My thought is no, but I would like to hear more
> > opinions.
>
> Yes, it does, though probably minor unless you have millions of records.  CHAR
> is padded out to the specified length.  Therefore the index on a char(36)
> column will be a little larger, and thus a little slower, than the char(20).
>

Really?  According to this url (search for "Tip") there is no performance
difference just a space difference.  I don't know for sure either way, but
if there is a difference the manual needs updating.

http://www.postgresql.org/idocs/index.php?datatype-character.html

-philip


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

Предыдущее
От: Wei Weng
Дата:
Сообщение: Re: Does this matter?
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Does this matter?