| From: | Josh Berkus <josh(at)agliodbs(dot)com> |
|---|---|
| To: | Tony Simbine <jantos-work(at)mvweb(dot)de>, pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: help |
| Date: | 2003-06-12 17:10:45 |
| Message-ID: | 200306121010.45479.josh@agliodbs.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | weigelt | 2003-06-13 01:26:11 | question on rules |
| Previous Message | Achilleus Mantzios | 2003-06-12 16:55:51 | Re: (no subject) |