Re: Reasonable amount of indices

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Reasonable amount of indices
Дата
Msg-id 5736.1189120726@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Reasonable amount of indices  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-performance
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Patric wrote:
>> My Question now is: Is it wise to do so, and create hundreds or maybe
>> thousands of Indices
>> which partition the table for the selections.

> No, this is not helpful -- basically what you are doing is taking the
> first level (the first couple of levels maybe) of the index out of it,

Right --- you'd be *far* better off using a small number of multicolumn
indexes.  I wouldn't want to bet that the planner code scales
effectively to thousands of indexes, and even if it does, you're
throwing away any chance of using parameterized queries.

The update overhead is unpleasant to contemplate as well (or is this a
read-only table?)

            regards, tom lane

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

Предыдущее
От: "Carlo Stonebanks"
Дата:
Сообщение: Re: Performance on 8CPU's and 32GB of RAM
Следующее
От: "Carlo Stonebanks"
Дата:
Сообщение: How planner decides left-anchored LIKE can use index