From: Brad Nicholson <bnichols@ca.afilias.info>
To: Ksenia Marasanova <ksenia.marasanova@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: newly created database makes queries run 300% faster
Date: Fri, 30 Jun 2006 10:36:03 -0400
Message-ID: <44A536D3.10601@ca.afilias.info> (raw)
In-Reply-To: <130df1930606300713y55496692l3ee844f055305aa8@mail.gmail.com>
References: <130df1930606300713y55496692l3ee844f055305aa8@mail.gmail.com>
Ksenia Marasanova wrote:
> Hi,
>
> Alfter hours of adjusting performance of the queries in my Postgres
> 7.3 database - reprogramming the queries, VACUUMing, changing value of
> enable_seqscan - I gived it up, recreated the database and transferred
> the dump of the old database into it.
> The queries went from 15 sec to 50 msec!! Wow.
> Now I would really love to know how the old database got that slow,
> and how can I avoid it in the future. Any tips are greatly
> appreciated!
If memory servers me (and it might not in this case), vacuum in 7.3 had
issues with indexes. Reindexing or clustering your tables might have
helped. Both are blocking operations.
How to avoid it in the future is simple. Upgrade to a modern version of
Postgres and vacuum your database properly. People work on this thing
for a reason :-)
--
Brad Nicholson 416-673-4106
Database Administrator, Afilias Canada Corp.
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: bnichols@ca.afilias.info, ksenia.marasanova@gmail.com
Subject: Re: newly created database makes queries run 300% faster
In-Reply-To: <44A536D3.10601@ca.afilias.info>
* 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