Will Index improve the speed?

Поиск
Список
Период
Сортировка
От Yonatan Ben-Nes
Тема Will Index improve the speed?
Дата
Msg-id 2d0127b80708281537y1e5e8c64rfdf589479828e8c7@mail.gmail.com
обсуждение исходный текст
Список pgsql-general
Hi all,

I got a table with many columns of data which got an index on one of the fields (Tsearch2 Gist).

I thought that maybe if I'll create a new table with 2 fields (primary key reference to the previous table & the index field from the previous table) and made the index on the index field, maybe then it will be faster to query the new smaller table and then left join the results to the first table in order to get the results.

Is that true or as I suspect the index is "in a way" a smaller table already which is handling it even better then my idea?

Thanks a lot in advance,
Yonatan

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Out of Memory - 8.2.4
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: Is there a better way to do this?