Re: index organized tables use case - Mailing list pgsql-general

From Richard Huxton
Subject Re: index organized tables use case
Date
Msg-id 475FFA4D.8060602@archonet.com
Whole thread Raw
In response to index organized tables use case  (Enrico Sirola <enrico.sirola@gmail.com>)
Responses Re: index organized tables use case
List pgsql-general
Enrico Sirola wrote:
> The application code usually performs selection queries like
>
> select tag, value from test where code='XXX';
>
> also, deletions are like
>
> delete from test where code='XXX';
>
> and insertions follow the same pattern (all the data for a code is
> inserted using a loop in a single transaction). That's more or less all.
>
> so this type of workload is greatly enhanced by an index-organized table
> (oracle) or a clustered index (SQL Server/Sybase).

Hmm - I'm not sure it does benefit that much. I mean, if you're going to
be accessing XXXA, then XXXB, XXXC etc. in order then it clearly helps
to have the table with the same order as your primary key. Otherwise,
I'd be doubtful you'd see that much benefit.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Hijack!
Next
From: statman
Date:
Subject: Re: Hijack!