Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 58627 invoked from network); 8 Feb 2006 19:17:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Feb 2006 19:17:57 -0000 Received: (qmail 82709 invoked by uid 500); 8 Feb 2006 19:17:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 82667 invoked by uid 500); 8 Feb 2006 19:17:54 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 82658 invoked by uid 99); 8 Feb 2006 19:17:54 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2006 11:17:54 -0800 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of msatoor@gmail.com designates 66.249.92.199 as permitted sender) Received: from [66.249.92.199] (HELO uproxy.gmail.com) (66.249.92.199) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2006 11:17:53 -0800 Received: by uproxy.gmail.com with SMTP id m2so1259uge for ; Wed, 08 Feb 2006 11:17:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=rjZncUp6sly7PJHx7u3tnYgIFbPXbik0PgwFw0P+9j+NOJt9TisuETgojsmquEx+44V1V7jcwu91m/uF5uQNrSrbhaLg92uhyM5j/+PUOkkjijrw5zAgb6GkXni4mfmyzGOeL3ihsQ1UiPQZHD4NdgcpKiN7iTOxpnUb3x+c9xA= Received: by 10.48.241.1 with SMTP id o1mr2074899nfh; Wed, 08 Feb 2006 11:11:08 -0800 (PST) Received: by 10.49.78.8 with HTTP; Wed, 8 Feb 2006 11:11:08 -0800 (PST) Message-ID: Date: Wed, 8 Feb 2006 11:11:08 -0800 From: Mamta Satoor To: Derby Development Subject: Derby-573 Optmier overrides - joinOrder and joinStrategy MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6088_18381622.1139425868329" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_6088_18381622.1139425868329 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, One of optimizer overrides, that a user can specify, is joinStrategy. The functional spec for joinStrategy says following "The joinStrategy property can be used only within a TableExpression, *but it must be used in conjunction with the joinOrder property. Do not let the optimizer choose th= e join order.*" When I wrote the functional spec, I got this piece of information from old Cloudscape release documentation, where the optimizer overrides were available in a non-portable syntax. I also got some of the test cases from that old Cloudscape release and one of the test cases is as follows *SELECT * FROM t1 a, t1 b --DERBY-PROPERTIES joinStrategy=3Dnestedloop WHERE a.c1=3Db.c1* As you can see, the example above doesn't specify joinOrder override along with joinStrategy. Should Derby (in its code) make it mandatory that joinStrategy can't be specified w/o joinOrder? If not, then should the functional spec be changed? What happens if user doesn't specify joinOrder along with joinStrategy? Will joinStrategy be ignored. I haven't had a chance to investigate this yet. I only stumbled on it last night when I was reviewing Eric's hardwork on getting this feature documented and noticed that the example for joinStrategy didn't include joinOrder. thanks, Mamta ------=_Part_6088_18381622.1139425868329 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,
 
One of optimizer overrides, that a user can specify, is joinStrat= egy. The functional spec for joinStrategy says following "The joi= nStrategy property can be used only within a TableExpression, but it mus= t be used in conjunction with the joinOrder property. Do not let the optimi= zer choose the join order. "
 
When I wrote the functional spec, I got this piece of information from= old Cloudscape release documentation, where the optimizer overrides were a= vailable in a non-portable syntax. I also got some of the test cases f= rom that old Cloudscape release and one of the test cases is as follows
SELECT * FROM t1 a, t1 b --DERBY-PROPERTIES joinStrategy=3Dnes= tedloop
WHERE a.c1=3Db.c1
As you can see, the example above doesn't specify joinOrder override&n= bsp;along with joinStrategy. Should Derby (in its code) make it mandat= ory that joinStrategy can't be specified w/o joinOrder? If not, then should= the functional spec be changed? What happens if user doesn't specify = joinOrder along with joinStrategy? Will joinStrategy be ignored. I haven't = had a chance to investigate this yet. I only stumbled on it last night when= I was reviewing Eric's hardwork on getting this feature documented and not= iced that the example for joinStrategy didn't include joinOrder.=20
 
thanks,
Mamta
------=_Part_6088_18381622.1139425868329--