Faster data type for one-length values

Поиск
Список
Период
Сортировка
От André Volpato
Тема Faster data type for one-length values
Дата
Msg-id 46544661.4020002@ecomtecnologia.com.br
обсуждение исходный текст
Ответы Re: Faster data type for one-length values  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hello,

I need to store one-length values like '1', '2', '3' or '4' .

Today, this field is indexed with btree and is of type smallint (int2).
How much performance will be improved if I change it to "char" (1 byte
length) ? Or int2 is the best solution in this case ?

Thanks !

--
[]´s,

André Volpato
ECOM Tecnologia Ltda
andre.volpato@ecomtecnologia.com.br




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

Предыдущее
От: "J. ORIOL"
Дата:
Сообщение: Re: Several queries consume 100 % processor
Следующее
От: PFC
Дата:
Сообщение: Re: Integrity on large sites