X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F045E47580B for ; Thu, 27 Mar 2003 15:05:28 -0500 (EST) Received: from hacklab.net (h-68-164-245-144.SNVACAID.covad.net [68.164.245.144]) by postgresql.org (Postfix) with SMTP id 42985474E44 for ; Thu, 27 Mar 2003 15:05:26 -0500 (EST) Received: (qmail 26789 invoked by uid 421); 27 Mar 2003 20:00:54 -0000 Received: from phiviv@hacklab.net by hacklab.net with qmail-scanner-0.93 (. Clean. Processed in 0.186376 secs); 27/03/2003 12:00:54 Received: from localhost (antispam@127.0.0.1) by localhost with SMTP; 27 Mar 2003 20:00:54 -0000 Subject: Re: PostgreSQL + IDS load/latency help From: philo vivero To: Loki Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Organization: Hack Lab Technology Labs Message-Id: <1048795508.2046.218.camel@timetop> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2-1mdk Date: 27 Mar 2003 12:05:08 -0800 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-21.8 required=5.0 tests=BAYES_10,IN_REP_TO,REFERENCES,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/501 X-Sequence-Number: 8141 > 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