Re: 7.3.1 New install, large queries are slow - Mailing list pgsql-performance

From Rod Taylor
Subject Re: 7.3.1 New install, large queries are slow
Date
Msg-id 1042727012.82534.50.camel@jester
Whole thread Raw
In response to Re: 7.3.1 New install, large queries are slow  (Ron Johnson <ron.l.johnson@cox.net>)
List pgsql-performance
On Thu, 2003-01-16 at 07:29, Ron Johnson wrote:
> On Thu, 2003-01-16 at 03:03, Roman Fail wrote:
> > ***********************
> > > Josh Berkus wrote:
> > > Hey, Roman, how many records in BatchDetail, anyway?
> >
> > 23 million.
>
> What are the indexes on batchdetail?
>
> There's one on batchid and a seperate one on tranamount?
>
> If so, what about dropping them and create a single multi-segment
> index on "batchid, tranamount".  (A constraint can then enforce
> uniqueness on batchid.

Thats a good step.  Once done, CLUSTER by that index -- might buy 10 to
20% extra.


--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

Attachment

pgsql-performance by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: schema/db design wrt performance
Next
From: Ron Johnson
Date:
Subject: Re: schema/db design wrt performance