| From: | Rod Taylor <rbt(at)rbt(dot)ca> |
|---|---|
| To: | Roman Fail <rfail(at)posportal(dot)com> |
| Cc: | PgSQL Performance ML <pgsql-performance(at)postgresql(dot)org> |
| Subject: | Re: 7.3.1 New install, large queries are slow |
| Date: | 2003-01-16 14:23:32 |
| Message-ID: | 1042727012.82534.50.camel@jester |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)rbt(dot)ca>
PGP Key: http://www.rbt.ca/rbtpub.asc
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ron Johnson | 2003-01-16 14:34:38 | Re: schema/db design wrt performance |
| Previous Message | Andrew Sullivan | 2003-01-16 14:20:05 | Re: schema/db design wrt performance |