Re: Performance difference between char and int2 columns

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: Performance difference between char and int2 columns
Дата
Msg-id 44856E9C.50707@magproductions.nl
обсуждение исходный текст
Ответ на Performance difference between char and int2 columns  ("Yavuz Kavus" <yavuzkavus@gmail.com>)
Список pgsql-general
Yavuz Kavus wrote:
> hi everybody.

> The problem is that:
> my both table has 10 records.
> when i run this query on first table :
>    select * from tb_section_phones;
>    it lasts 0.02 sec.
> when i run this query on second table :
>    select * from tb_section_phones_temp;
>    it lasts 0.13 sec.
>
> 6.5 times slower.
> why so performance difference?
> should i prefer int as column type?

Did you ANALYZE your tables?
What version of Postgres is this?

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
    7500 AK Enschede

// Integrate Your World //

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

Предыдущее
От: Kenneth Downs
Дата:
Сообщение: Re: Best open source tool for database design / ERDs?
Следующее
От: "pobox@verysmall.org"
Дата:
Сообщение: Re: php 5.1.4 w/ PostgreSQL 8.1.4