From: Jeff <threshar@torgo.978.org>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: sszabo@megazone.bigpanda.com
Cc: pgsql-performance@postgresql.org
Subject: Re: Adding foreign key performance
Date: Wed, 29 Oct 2003 09:01:54 -0500
Message-ID: <20031029090154.53b1e22d.threshar@torgo.978.org> (raw)
In-Reply-To: <3F9F1C30.4010306@familyhealth.com.au>
References: <20031028091645.3d610841.threshar@torgo.978.org>
<20031028113359.3932438f.threshar@torgo.978.org>
<20031028101820.T64490@megazone.bigpanda.com>
<3F9F1C30.4010306@familyhealth.com.au>
On Wed, 29 Oct 2003 09:47:28 +0800
Christopher Kings-Lynne <chriskl@familyhealth.com.au> wrote:
> >>Just loaded up delicious 7.4b5 and wow...
> >>
> >>sort_mem 8192: 137038ms [lots of tmp file activity]
> >>sort_mem 256000: 83109ms
> >
> 1. A full ANALYZE
> 2. A delete all from pg_statistic
>
I had previously analyze'd before I ran those numbers.
But I did it again with and without stats.
With:
Run 1 Time: 80157.21 ms
Run 2 Time: 80763.59 ms
Killed statistics:
Time: 80571.71 ms
Time: 80759.18 ms
Chances are it is going to seq scan regardless so the stats are rather
useless. Perhaps in other scenarios it would help.
--
Jeff Trout <jeff@jefftrout.com>
http://www.jefftrout.com/http://www.stuarthamm.net/
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: threshar@torgo.978.org, chriskl@familyhealth.com.au, sszabo@megazone.bigpanda.com
Subject: Re: Adding foreign key performance
In-Reply-To: <20031029090154.53b1e22d.threshar@torgo.978.org>
* 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