Re: [ADMIN] Q: Structured index - which one runs faster?

From: Vivek Khera <khera(at)kcilink(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [ADMIN] Q: Structured index - which one runs faster?
Date: 2003-05-23 18:04:28
Message-ID: 16078.25260.512996.337914@yertle.int.kciLink.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general pgsql-performance

>>>>> "TL" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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!

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Ian Barwick 2003-05-23 18:12:10 Re: return multiple rows
Previous Message Nam Nguyen 2003-05-23 18:00:22 unsubscribe

Browse pgsql-general by date

  From Date Subject
Next Message Manfred Koizar 2003-05-23 18:30:03 Re: [ADMIN] Q: Structured index - which one runs faster?
Previous Message Tom Lane 2003-05-23 17:38:37 Re: [ADMIN] Q: Structured index - which one runs faster?

Browse pgsql-performance by date

  From Date Subject
Next Message Manfred Koizar 2003-05-23 18:30:03 Re: [ADMIN] Q: Structured index - which one runs faster?
Previous Message Tom Lane 2003-05-23 17:38:37 Re: [ADMIN] Q: Structured index - which one runs faster?