Re: Compound Indexes - Mailing list pgsql-general

From Tom Lane
Subject Re: Compound Indexes
Date
Msg-id 20500.1187144121@sss.pgh.pa.us
Whole thread Raw
In response to Re: Compound Indexes  ("Phoenix Kiula" <phoenix.kiula@gmail.com>)
List pgsql-general
"Phoenix Kiula" <phoenix.kiula@gmail.com> writes:
> Thank you so much! My only concern, probably a hangover from the MySQL
> world, is that if I have 5 of 6 indices, what would that do to INSERT
> and UPDATE performance if all these indices have to be updated? Is
> updating individual indices faster than one large compound index?

Probably slower, but the compound index is enough more specialized that
it's not as useful as the individual indexes.  (I suspect that that
compound index in MySQL didn't do you nearly as much good as you
thought, either.)  You should read
http://www.postgresql.org/docs/8.2/static/indexes-bitmap-scans.html
and nearby sections of the manual.

            regards, tom lane

pgsql-general by date:

Previous
From: Ow Mun Heng
Date:
Subject: Re: Insert or Replace or \copy (bulkload)
Next
From: Tom Lane
Date:
Subject: Re: Insert or Replace or \copy (bulkload)