pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Dawid Kuroczko <qnex42@gmail.com>
To: Joel Fradkin <jfradkin@wazagua.com>
Cc: PostgreSQL Perform <pgsql-performance@postgresql.org>
Subject: Re: speed of querry?
Date: Thu, 14 Apr 2005 16:20:36 +0200
Message-ID: <758d5e7f0504140720754c7750@mail.gmail.com> (raw)
In-Reply-To: <000001c540f9$311dd440$797ba8c0@jfradkin>
References: <27509.1113461226@sss.pgh.pa.us>
<000001c540f9$311dd440$797ba8c0@jfradkin>
On 4/14/05, Joel Fradkin <jfradkin@wazagua.com> wrote:
> I have done a vacuum and a vacuum analyze.
> I can try again for kicks, but it is not in production so no new records are
> added and vacuum analyze is ran after any mods to the indexes.
>
> I am still pursuing Dell on why the monster box is so much slower then the
> desktop as well.
First thing: Do something like:
ALTER TABLE tbljobtitle ALTER COLUMN clientnum SET STATISTICS 50;
make it for each column used, make it even higher than 50 for
many-values columns.
THEN make VACUUM ANALYZE;
Then do a query couple of times (EXPLAIN ANALYZE also :)), then do:
SET enable_seqscan = off;
and rerun the query -- if it was significantly faster, you will want to do:
SET enable_seqscan = on;
and tweak:
SET random_page_cost = 2.1;
...and play with values. When you reach the random_page_cost which
suits your data, you will want to put it into postgresql.conf
I am sorry if it is already known to you. :) Also, it is a rather simplistic
approach to tuning PostgreSQL but it is worth doing. Especially the
statistics part. :)
Regards,
Dawid
view thread (22+ messages) latest in thread
Message-ID: <758d5e7f0504140720754c7750@mail.gmail.com> Permalink: ../758d5e7f0504140720754c7750@mail.gmail.com/ Also on: postgresql.org/message-id/758d5e7f0504140720754c7750@mail.gmail.com ·
reply
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: qnex42@gmail.com, jfradkin@wazagua.com Subject: Re: speed of querry? In-Reply-To: <758d5e7f0504140720754c7750@mail.gmail.com> * 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