X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 9951530DE5B for ; Thu, 12 Jun 2003 17:13:06 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 09529-04 for ; Thu, 12 Jun 2003 14:12:56 -0300 (ADT) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by svr1.postgresql.org (Postfix) with ESMTP id BFFFF30D1CB for ; Thu, 12 Jun 2003 14:12:55 -0300 (ADT) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3114249; Thu, 12 Jun 2003 10:13:03 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: Tony Simbine , pgsql-sql@postgresql.org Subject: Re: help Date: Thu, 12 Jun 2003 10:10:45 -0700 User-Agent: KMail/1.4.3 References: <3EE88B1F.2050003@mvweb.de> In-Reply-To: <3EE88B1F.2050003@mvweb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200306121010.45479.josh@agliodbs.com> X-Archive-Number: 200306/117 X-Sequence-Number: 13875 Tony, > I've a query which needs too many time ca. 12-15 sec. > how can i get a better perfomance? First of all, please take this to the PGSQL-PERFORMANCE list. Second, see this web page: http://techdocs.postgresql.org/guides/SlowQueryPostingGuidelines > explain select o.id from ioobeject o,dist_vertron v where > macro_lid=1123 and (o.id=v.id) and (o.deleted<>'1') and > (o.status='activo') order by o.ort; Third, from your explain, ioobject and dist_vertron are obviously somewhat complex views. We need those view definitions, possibly plus schema for the underlying tables (including indexes), or we can't help you. -- Josh Berkus Aglio Database Solutions San Francisco