X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E99CF47580B for ; Thu, 27 Mar 2003 16:28:00 -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 6DC3D476241 for ; Thu, 27 Mar 2003 16:27:55 -0500 (EST) Received: (qmail 28434 invoked by uid 421); 27 Mar 2003 21:23:19 -0000 Received: from pvspam-postgres@hacklab.net by hacklab.net with qmail-scanner-0.93 (. Clean. Processed in 0.781148 secs); 27/03/2003 13:23:18 Received: from localhost (antispam@127.0.0.1) by localhost with SMTP; 27 Mar 2003 21:23:18 -0000 Subject: Re: PostgreSQL + IDS load/latency help From: Tim Ellis To: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Organization: PostgreSQL Admin Message-Id: <1048800462.2046.226.camel@timetop> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2-1mdk Date: 27 Mar 2003 13:27:42 -0800 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-34.8 required=5.0 tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES,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/468 X-Sequence-Number: 8108 On Thu, 2003-03-27 at 07:12, Loki wrote: > 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 don't see anything 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? PostgreSQL can give you speedy access into billions of rows of data given proper indexing and maintenance. I'd like to see your query's access plan. -- Tim Ellis Senior Database Architect and author, tedia2sql (http://tedia2sql.tigris.org) If this helped you, http://svcs.affero.net/rm.php?r=philovivero