| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера