Re: What type of index should I use?

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: What type of index should I use?
Дата
Msg-id 87ocf3qwoz.fsf@hi-media-techno.com
обсуждение исходный текст
Ответ на What type of index should I use?  (Mike Christensen <mike@kitchenpc.com>)
Ответы Re: What type of index should I use?  (Adrian von Bidder <avbidder@fortytwo.ch>)
Список pgsql-general
Mike Christensen <mike@kitchenpc.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

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: How to flatten a database table
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: High Availability with Postgres