Re: help - Mailing list pgsql-sql

From Josh Berkus
Subject Re: help
Date
Msg-id 200306121010.45479.josh@agliodbs.com
Whole thread Raw
In response to help  (Tony Simbine <jantos-work@mvweb.de>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Robert Treat
Date:
Subject: Re: control structures in plpgsql
Next
From: weigelt@metux.de
Date:
Subject: question on rules