Re: help

From: Tony Simbine <jantos-work(at)mvweb(dot)de>
To: pgsql-sql(at)postgresql(dot)org
Cc: Josh Berkus <josh(at)agliodbs(dot)com>
Subject: Re: help
Date: 2003-06-17 11:28:16
Message-ID: 3EEEFB50.1070908@mvweb.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Josh,

thanks for your help.

Josh Berkus wrote:
> 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

i read some tips on the above pages and my database and all my
queries run very well.
i've optimized the queriey from where ... IN (select ..) to EXISTS
and I've done vacumdb full.

my requests last between 0.009 to 0.2 sec compared with 12-15 sec.

i'm very happy.

thanks very much.

tony

>
>
>>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.
>

In response to

  • Re: help at 2003-06-12 17:10:45 from Josh Berkus

Browse pgsql-sql by date

  From Date Subject
Next Message scott.marlowe 2003-06-17 12:02:27 Re: select date range?
Previous Message Radu-Adrian Popescu 2003-06-17 10:49:35 Re: Catching DML exceptions in PL/pgSQL