Re: [ADMIN] Q: Structured index - which one runs faster? - Mailing list pgsql-general

From Vivek Khera
Subject Re: [ADMIN] Q: Structured index - which one runs faster?
Date
Msg-id 16078.25260.512996.337914@yertle.int.kciLink.com
Whole thread Raw
In response to Re: [ADMIN] Q: Structured index - which one runs faster?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
>>>>> "TL" == Tom Lane <tgl@sss.pgh.pa.us> writes:

>> In particular, is user_list_owner_id redundant to
>> user_list_oid_created?

TL> Any of the three indexes can be used for a search on owner_id alone, so
TL> yeah, user_list_owner_id is redundant.  It would be marginally faster to
TL> use user_list_owner_id for such a search, just because it's physically
TL> smaller than the other two indexes, but against that you have to balance
TL> the extra update cost of maintaining the additional index.

This is great info.  That extra index is gonna be nuked in about 37.23
seconds...  It takes up a lot of space and is wasting time with
updates and inserts, which happen a *lot* on that table (nearly 10
million rows).

Thanks!


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: [ADMIN] Q: Structured index - which one runs faster?
Next
From: Manfred Koizar
Date:
Subject: Re: [ADMIN] Q: Structured index - which one runs faster?