Index and performance

Поиск
Список
Период
Сортировка
От Andreas Schlegel
Тема Index and performance
Дата
Msg-id 3DFCF80D.3080505@gmx.de
обсуждение исходный текст
Ответы Re: Index and performance  (Manfred Koizar <mkoi-pg@aon.at>)
Список pgsql-general
Hi,

to get the best query performance is it necessary to create a separate
index on a column which is already part of an another index?


Example:

Table TEST:
COL1
COL2
COL3

The PRIMARY KEY consists of COL1 and COL2. But if I run a query only on
the not unique COL1 is it better for the query performance to have a
separate index or is the existence of the primary key sufficient?

Greetings,
Andreas



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Memory leak with palloc
Следующее
От: Lee Harr
Дата:
Сообщение: Re: Total crash of my db-server