| From: | Alban Hertroys <alban(at)magproductions(dot)nl> |
|---|---|
| To: | Yavuz Kavus <yavuzkavus(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Performance difference between char and int2 columns |
| Date: | 2006-06-06 12:01:32 |
| Message-ID: | 44856E9C.50707@magproductions.nl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)magproductions(dot)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 //
| From | Date | Subject | |
|---|---|---|---|
| Next Message | pobox@verysmall.org | 2006-06-06 12:03:28 | Re: php 5.1.4 w/ PostgreSQL 8.1.4 |
| Previous Message | Bjørn T Johansen | 2006-06-06 11:51:49 | Re: Best open source tool for database design / ERDs? |