From: jwieck@debis.com
To: djackson@cpsgroup.com
Cc: jwieck@debis.com
Cc: caffeine@toodarkpark.org
Cc: selkovjr@mcs.anl.gov
Cc: pierre@desertmoon.com
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Joining bug????
Date: Wed, 28 Oct 1998 19:38:00 +0100 (MET)
Message-ID: <m0zYaTp-000EBPC@orion.SAPserv.Hamburg.dsh.de> (raw)
In-Reply-To: <F10BB1FAF801D111829B0060971D839F4B04AA@cpsmail>
> > But it's interesting. I'll do some tests on it and try to
> > find out whether parsing of complicated WHERE clauses is that
> > costly that it can be the reason. Seems the rule system is
> > quicker than the parser :-)
> >
> What kind of speed increases are people seeing in their queries?
> I've actually never created a view in PostgreSQL (say he with head hung
> low).
Used a view that is a join of 5 tables. There is absolutely
no difference between using the view or the equivalent select
from the tables directly in what -s prints as times.
There must be something else that causes the speedup
reported. Maybe another ordering in the qualifications when
using the view. The view qual's are added last to the
original queries qual. Putting them the other way round in
the query might produce another join order.
Jan
--
#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me. #
#======================================== jwieck@debis.com (Jan Wieck) #
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: jwieck@debis.com, djackson@cpsgroup.com, caffeine@toodarkpark.org, selkovjr@mcs.anl.gov, pierre@desertmoon.com
Subject: Re: [SQL] Joining bug????
In-Reply-To: <m0zYaTp-000EBPC@orion.SAPserv.Hamburg.dsh.de>
References: <F10BB1FAF801D111829B0060971D839F4B04AA@cpsmail> <m0zYaTp-000EBPC@orion.SAPserv.Hamburg.dsh.de>
* 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