pg.ddx.io pgsql-performance@postgresql.org mailing list archive
help / color / mirror / Atom feednewly created database makes queries run 300% faster
2+ messages / 2 participants
[nested] [flat]
* newly created database makes queries run 300% faster
@ 2006-06-30 14:13 Ksenia Marasanova <ksenia.marasanova@gmail.com>
2006-06-30 14:36 ` Re: newly created database makes queries run 300% faster Brad Nicholson <bnichols@ca.afilias.info>
0 siblings, 1 reply; 2+ messages in thread
From: Ksenia Marasanova @ 2006-06-30 14:13 UTC (permalink / raw)
To: pgsql-performance
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!
Thanks!
Ksenia.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: newly created database makes queries run 300% faster
2006-06-30 14:13 newly created database makes queries run 300% faster Ksenia Marasanova <ksenia.marasanova@gmail.com>
@ 2006-06-30 14:36 ` Brad Nicholson <bnichols@ca.afilias.info>
0 siblings, 0 replies; 2+ messages in thread
From: Brad Nicholson @ 2006-06-30 14:36 UTC (permalink / raw)
To: Ksenia Marasanova <ksenia.marasanova@gmail.com>; +Cc: pgsql-performance
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2006-06-30 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-30 14:13 newly created database makes queries run 300% faster Ksenia Marasanova <ksenia.marasanova@gmail.com>
2006-06-30 14:36 ` Brad Nicholson <bnichols@ca.afilias.info>
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