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 4D139D1B48A for ; Tue, 6 Jan 2004 05:26:37 +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 55905-04 for ; Tue, 6 Jan 2004 01:25:54 -0400 (AST) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 89CF2D1B471 for ; Tue, 6 Jan 2004 01:25:44 -0400 (AST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i065PW915257; Tue, 6 Jan 2004 00:25:32 -0500 (EST) From: Bruce Momjian Message-Id: <200401060525.i065PW915257@candle.pha.pa.us> Subject: Re: optimizing Postgres queries In-Reply-To: <4530AF9E-3FB4-11D8-A528-000A95A6F0DC@cluster9.com> To: David Teran Date: Tue, 6 Jan 2004 00:25:32 -0500 (EST) Cc: Tom Lane , pgsql-performance@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/61 X-Sequence-Number: 5236 David Teran wrote: > Index?Scan?using?key_value_meta_data__id_value__fk_index,?key_value_meta > _data__id_value__fk_index?on?"KEY_VALUE_META_DATA"?t0??(cost=0.00..19.94 > ?rows=14?width=75)?(actual?time=0.112..0.296?rows=25?loops=1) > ??Index?Cond:?(("ID_VALUE"?=?21094)?OR?("ID_VALUE"?=?21103)) > Total runtime: 0.429 ms > > Much better. So i think i will first read more about this optimization > stuff and regular maintenance things. This is something i like very > much from FrontBase: no need for such things, simply start and run. But > other things were not so fine ;-). > > Is there any hint where to start to understand more about this > optimization problem? Read the FAQ. There is an item about slow queries and indexes. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073