Re: What type of index should I use?

From: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
To: Mike Christensen <mike(at)kitchenpc(dot)com>
Cc: "pgsql-general\(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: What type of index should I use?
Date: 2010-06-22 08:49:00
Message-ID: 87ocf3qwoz.fsf@hi-media-techno.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Christensen <mike(at)kitchenpc(dot)com> writes:

> I have a varying(200) text column that I need to be able to do lookups
> on very fast (WHERE col = 'foo')

Btree is what to use here. GIN covers cases where you index arrays.

> I estimate the table will hold around 5,000 rows, never any more.

It could be that you're better off without any index, depending on the
size of rows you put in there, and the overall memory usage patterns you
have.

Regards,
--
dim

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dimitri Fontaine 2010-06-22 08:58:05 Re: High Availability with Postgres
Previous Message Thomas Kellerer 2010-06-22 08:45:17 Re: How to flatten a database table