Re: Question about indexes

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Question about indexes
Дата
Msg-id b42b73150809161124lb85b86fl89e295877f161352@mail.gmail.com
обсуждение исходный текст
Ответ на Question about indexes  ("regme please" <regmeplease@gmail.com>)
Ответы Re: Question about indexes  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
On Tue, Sep 9, 2008 at 10:52 AM, regme please <regmeplease@gmail.com> wrote:
> Hi all.
> I usually create indexes accordingly to the queries used in my software.
> This means the more often than not I have composited indexes over more than
> one column.
> What'd be in PGSQL (v8.3+) the pros and cons of having instead only
> one-column indexes?
> Thanks in advance.

Pro:
Fewer number of smaller well traveled indexes (more efficient from
cache perspective).

Con:
Operations that look up multiple fields simultaneously run slower
(sometimes much slower).

Note that when reviewing sql written by other people in the
performance list, probably the most common optimization suggestion is
to use composite indexes.

merlin

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

Предыдущее
От: Reg Me Please
Дата:
Сообщение: Re: Question about indexes
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Question about indexes