Re: reorder table data - Mailing list pgsql-general

From Richard Huxton
Subject Re: reorder table data
Date
Msg-id 42667689.9060300@archonet.com
Whole thread Raw
In response to Re: reorder table data  ("vinita bansal" <sagivini@hotmail.com>)
List pgsql-general
vinita bansal wrote:
> Oh Sorry!!
> I gave a wrong example for update. It includes "where clause" as well
> which esentially mean that not all the rows will be modified each time.
> If suppose I already know (assuming that I can find out which rows will
> bw accessed) is there a way to organize the table data such that updates
> and selects become fast.
>
> We cannot make changes to the application to handle such a situation (by
> creating two different tables one for active and another for inactive
> data) wherein it will access active data mostly and access inactive data
> from other table only when required since it is very complex and
> changing it will require lots of effort.

OK - so show one or more typical queries and their EXPLAIN ANALYSE
outputs and we can see where the bottleneck is.

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: David Gagnon
Date:
Subject: Regular expression. How to disable ALL meta-character in a regular expression
Next
From: Richard Huxton
Date:
Subject: Re: Encoding problem