From: philo vivero <phiviv@hacklab.net>
To: Loki <loki@fatelabs.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: PostgreSQL + IDS load/latency help
Date: 27 Mar 2003 12:05:08 -0800
Message-ID: <1048795508.2046.218.camel@timetop> (raw)
In-Reply-To: <web-1582843@ackind.net>
References: <web-1582843@ackind.net>
> We have a PostgreSQL database full of over 500,000 events.
> When the database has a small number of events, to
> retrieve a specific event stored in that db takes a mere
> few seconds.
>
> However, as the database grew in size to where it is now,
> it takes over 15-20 seconds to get information back from a
> query to that database. We have tried everything,
> including vacuum, which someone else recommended to me.
Sometimes it's the simple things. Did you do an explain on the query to
see its access plan? I see nothing in your post about indexes.
> Am I correct in saying that 500,000 events shouldn't be a
> problem? Is there anyone out there with more than 500,000
> events in their DB than what we currently have?
With proper indexes, 500,000,000 "events" shouldn't be a problem.
--
pv
If this helped you, http://svcs.affero.net/rm.php?r=philovivero
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-admin@postgresql.org
Cc: phiviv@hacklab.net, loki@fatelabs.com
Subject: Re: PostgreSQL + IDS load/latency help
In-Reply-To: <1048795508.2046.218.camel@timetop>
References: <web-1582843@ackind.net> <1048795508.2046.218.camel@timetop>
* 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