Re: single index on more than two coulumns a bad thing?
В списке pgsql-performance по дате отправления:
| От | Bruno Wolff III |
|---|---|
| Тема | Re: single index on more than two coulumns a bad thing? |
| Дата | |
| Msg-id | 20040402155604.GC5151@wolff.to обсуждение исходный текст |
| Ответ на | single index on more than two coulumns a bad thing? (Palle Girgensohn <girgen@pingpong.net>) |
| Ответы |
Re: single index on more than two coulumns a bad thing?
|
| Список | pgsql-performance |
On Fri, Apr 02, 2004 at 01:00:45 +0200, Palle Girgensohn <girgen@pingpong.net> wrote: > > Is it always bad to create index xx on yy (field1, field2, field3); > > I guess the problem is that the index might often grow bigger than the > table, or at least big enough not to speed up the queries? One place where you need them in postgres is enforcing unique multicolumn keys. These will get created implicitly from the unique (or primary key) constraint. It isn't all that unusual to have a table that describes a many to many (to many ...) relationship where the primary key is all of the columns.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера