From: | "Merlin Moncure" <mmoncure(at)gmail(dot)com> |
---|---|
To: | "regme please" <regmeplease(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Question about indexes |
Date: | 2008-09-16 18:24:58 |
Message-ID: | b42b73150809161124lb85b86fl89e295877f161352@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Sep 9, 2008 at 10:52 AM, regme please <regmeplease(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Scott Marlowe | 2008-09-16 18:41:22 | Re: Question about indexes |
Previous Message | Reg Me Please | 2008-09-16 17:59:14 | Re: Question about indexes |