From: Ansley, Michael <Michael.Ansley@intec.co.za>
To: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: RE: [SQL] Good Optimization
Date: Fri, 9 Jul 1999 11:59:34 +0200
Message-ID: <1BF7C7482189D211B03F00805F8527F70ED012@S-NATH-EXCH2> (raw)
> >
> > Bruce Momjian wrote:
> > >=20
> > > Added to TODO:
> > >=20
> > > * In WHERE x=3D3 AND x=3Dy, add y=3D3
> >
> > I don't know if I'm way off, but wouldn't removing "x=3Dy" improve
> > performance further?
>
<snip some example stuff>
>
> IMHO we're improving optimization more and more on the cost
> of query parse/rewrite/optimize/plan time. Thus performance
> of statements that EXECUTE fast slows down more and more.
> Isn't it time to think about some (maybe shared)
> "parsetree->plan" cache that provides ready to use plans if
> only Const values have changed?
Isn't this what stored procs are supposed to be? If a stored proc is
defined
with parameters, then the query plan is saved, and the execution of the
statement
is saved the effort of having to recompile the plan. In fact, I think that
SQL
Server, and possibly Oracle as well, store the plan for any query sent, and
then
drop it when the connection is terminated. Perhaps this is something to
think
about.
MikeA
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: Michael.Ansley@intec.co.za
Subject: Re: [SQL] Good Optimization
In-Reply-To: <1BF7C7482189D211B03F00805F8527F70ED012@S-NATH-EXCH2>
References: <1BF7C7482189D211B03F00805F8527F70ED012@S-NATH-EXCH2>
* 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