X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 11B2AD1B48E for ; Mon, 5 Jan 2004 11:29:27 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 56587-01 for ; Mon, 5 Jan 2004 07:28:39 -0400 (AST) Received: from ns2.rox.net (ns2.rox.net [212.63.65.2]) by svr1.postgresql.org (Postfix) with ESMTP id 972A1D1B47D for ; Mon, 5 Jan 2004 07:28:36 -0400 (AST) Received: from localhost ([127.0.0.1]) by emma.rox.net with esmtp (Exim 4.22) id 1AdSuR-0006DM-CZ for pgsql-performance@postgresql.org; Mon, 05 Jan 2004 12:28:35 +0100 Received: from [195.135.143.205] (helo=[195.135.143.205]) by emma.rox.net with asmtp (Exim 4.22) id 1AdSuQ-0006D0-Om for pgsql-performance@postgresql.org; Mon, 05 Jan 2004 12:28:34 +0100 Mime-Version: 1.0 (Apple Message framework v609) Content-Transfer-Encoding: 7bit Message-Id: <4B0023AC-3F72-11D8-B3EB-000A95A6F0DC@cluster9.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: pgsql-performance@postgresql.org From: David Teran Subject: optimizing Postgres queries Date: Mon, 5 Jan 2004 12:28:32 +0100 X-Mailer: Apple Mail (2.609) X-Scanned-By: rockenstein AG X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/26 X-Sequence-Number: 5201 Hi, we are new to Postgres and we are evaluating Postgres 7.4 on MacOS X as an alternative to FrontBase 3.6.27. From the available features Postgres is the choice #1. We have some tests to check the performance and FrontBase is about 10 times faster than Postgres. We already played around with explain analyse select. It seems that for large tables Postgres does not use an index. We often see the scan message in the query plan. Were can we find more hints about tuning the performance? The database is about 350 MB large, without BLOB's. We tried to define every important index for the selects but it seems that something still goes wrong: FrontBase needs about 23 seconds for about 4300 selects and Postgres needs 4 minutes, 34 seconds. Any clues? regards David