发明名称 Dynamically determining join order
摘要 A weight is determined for each of a plurality of join predicates for a join between one or more first database objects and one or more second database objects based on a join selectivity for each of the plurality of join predicates. The plurality of join predicates are sorted based on the determined weights. The join operation is performed joining the one or more first database objects with the one or more second database objects in accordance with an order of the sorted plurality of join predicates.
申请公布号 US9171043(B2) 申请公布日期 2015.10.27
申请号 US201313755784 申请日期 2013.01.31
申请人 International Business Machines Corporation 发明人 Attaluri Gopi K.;Lightstone Sam S.;Raman Vijayshankar
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Edell, Shapiro & Finnan, LLC 代理人 Kashef Mohammed;Edell, Shapiro & Finnan, LLC
主权项 1. A computer-implemented method of joining one or more first database objects with one or more second database objects comprising: determining a weight for each of a plurality of join predicates between one or more of the first database objects and one or more of the second database objects based on a join selectivity for each of the plurality of join predicates, wherein the join selectivity comprises an estimation of a portion of a total number of values in database objects that will be included in the join based on a particular predicate; sorting the plurality of join predicates based on the determined weights; and performing a join operation to join the one or more first database objects with the one or more second database objects in accordance with an order of the sorted plurality of join predicates, wherein determining the weight for each of the plurality of join predicates comprises: determining the join selectivity for each join predicate comprising determining a frequency in each of the first database objects of values that are used to perform the join, anddetermining the weight according to the following formula:weight=(1-join_selectivity)/lookup_cost; wherein the lookup cost comprises an estimation of the resources that would be used to perform the join.
地址 Armonk NY US