Received: from orion.SAPserv.Hamburg.dsh.de (Tpolaris2.sapham.debis.de [53.2.131.8]) by hub.org (8.9.3/8.9.3) with SMTP id GAA80175 for ; Thu, 8 Jul 1999 06:23:54 -0400 (EDT) (envelope-from wieck@debis.com) Received: by orion.SAPserv.Hamburg.dsh.de for pgsql-sql@postgreSQL.org id m112BLo-0003ktC; Thu, 8 Jul 99 12:24 MET DST Message-Id: From: wieck@debis.com (Jan Wieck) Subject: Re: [SQL] Good Optimization To: kudo@partitur.se (Patrik Kudo) Date: Thu, 8 Jul 1999 12:24:20 +0200 (MET DST) Cc: jwieck@debis.com, maillist@candle.pha.pa.us, pgsql-sql@postgreSQL.org Reply-To: jwieck@debis.com (Jan Wieck) In-Reply-To: <37846E02.CB83939C@partitur.se> from "Patrik Kudo" at Jul 8, 99 11:23:14 am X-Mailer: ELM [version 2.4 PL25] Content-Type: text Patrik Kudo wrote: > Jan Wieck wrote: > > > > This time the "a.x = b.x" is important! > > Ouch... didn't think that far. However, if an cache is implemented > it might be worth the extra overhead to optimize special cases like > the one I commented on. Since most systems use a fairly limited set > of queries (I suppose...) most of the queries will be cached quite > fast. Exactly the fact that most system use a limited set of queries made me think that a shared query->plan cache, that in the best of all worlds isn't lost on backend termination, is worth the efford. And it would lower the need of client side prepared execution plans as discussed sometimes. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #========================================= wieck@debis.com (Jan Wieck) #