From: Alvaro Herrera <alvherre@commandprompt.com>
To: Carlos H. Reimer <carlos.reimer@opendb.com.br>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: RES: Improving select peformance
Date: Wed, 1 Aug 2007 12:52:48 -0400
Message-ID: <20070801165248.GF10324@alvh.no-ip.org> (raw)
In-Reply-To: <PEEPKDFEHHEMKBBFPOOKGEHBFDAA.carlos.reimer@opendb.com.br>
References: <15248.1184895068@sss.pgh.pa.us>
<PEEPKDFEHHEMKBBFPOOKGEHBFDAA.carlos.reimer@opendb.com.br>
Carlos H. Reimer wrote:
> Hi,
>
> I have changed the view to eliminate the bizarre concatenation conditions
> but even so the response time did not change.
Are you sure you did that? In the EXPLAIN it's still possible to see
them, for example
> -> Nested Loop (cost=1.34..3409.04 rows=1 width=159)
> (actual time=0.237..32.520 rows=414 loops=1)
> Join Filter: ((gra.codtam)::text = ((sub.codite)::text
> || ''::text))
> -> Nested Loop (cost=1.34..3376.84 rows=28 width=136)
> (actual time=0.226..20.978 rows=414 loops=1)
> -> Hash Join (cost=1.34..3356.99 rows=28
> width=145) (actual time=0.215..15.225 rows=414 loops=1)
> Hash Cond: ((gra.codcor)::text =
> ((div.codite)::text || ''::text))
--
Alvaro Herrera http://www.amazon.com/gp/registry/CTMLCN8V17R4
"Uno combate cuando es necesario... ¡no cuando está de humor!
El humor es para el ganado, o para hacer el amor, o para tocar el
baliset. No para combatir." (Gurney Halleck)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: alvherre@commandprompt.com, carlos.reimer@opendb.com.br, tgl@sss.pgh.pa.us
Subject: Re: RES: Improving select peformance
In-Reply-To: <20070801165248.GF10324@alvh.no-ip.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox