Re: b-tree index performance

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Yonatan Ben-Nes <yonatan(at)epoch(dot)co(dot)il>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: b-tree index performance
Date: 2006-12-15 11:41:09
Message-ID: 20061215114109.GG958@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Dec 15, 2006 at 01:13:00PM +0200, Yonatan Ben-Nes wrote:
> Hi all,
>
> I was wondering does the b-tree index performance change when it's
> implemented on different data types fields? is it better to use one of them
> instead of the other for (=) comparisons?
> I'm especially interested between INT8 and TEXT data types.

The difference in performence will be determined by the cost of
comparison. The cost of comparing strings is much higher than for
integers, so it will be slower.

Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ragnar 2006-12-15 12:49:48 Re: Needed files - embedded postgres
Previous Message Yonatan Ben-Nes 2006-12-15 11:13:00 b-tree index performance