From: Rod Taylor <rbt@rbt.ca>
To: Roman Fail <rfail@posportal.com>
Cc: PgSQL Performance ML <pgsql-performance@postgresql.org>
Subject: Re: 7.3.1 New install, large queries are slow
Date: 16 Jan 2003 09:23:32 -0500
Message-ID: <1042727012.82534.50.camel@jester> (raw)
In-Reply-To: <1042720183.892.18.camel@haggis>
References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4C02@pos_pdc.posportal.com>
<1042720183.892.18.camel@haggis>
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.ascAttachments:
signature.asc (application/pgp-signature, 186B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: rbt@rbt.ca, rfail@posportal.com
Subject: Re: 7.3.1 New install, large queries are slow
In-Reply-To: <1042727012.82534.50.camel@jester>
References: <9B1C77393DED0D4B9DAA1AA1742942DA0E4C02@pos_pdc.posportal.com> <1042720183.892.18.camel@haggis> <1042727012.82534.50.camel@jester>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox