Re: Field wise checking the performance.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Field wise checking the performance.
Дата
Msg-id 4D59204B.9010300@enterprisedb.com
обсуждение исходный текст
Ответ на Field wise checking the performance.  (dba <dbadbb@gmail.com>)
Список pgsql-performance
On 14.02.2011 14:06, dba wrote:
> I have two identical tables. But the with of the fields are different. Need
> to know whether changing from varchar(100) to varchar(30) will increase the
> performance, or its just the memory access.

It will make no difference. The max length is just a constraint on what
values can be stored, it doesn't affect how the strings are stored. In
both cases, the strings are stored in a variable-length format.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: dba
Дата:
Сообщение: Field wise checking the performance.
Следующее
От: Shaun Thomas
Дата:
Сообщение: Re: How to boost performance of queries containing pattern matching characters