发明名称 Exploitation of uniqueness properties using a 1-tuple condition for the optimization of SQL queries
摘要 The present invention optimizes SQL queries by exploiting uniqueness properties. In identifying whether the generalized 1-tuple condition exists, the query is first analyzed to determine whether any columns referenced in a predicate of the query are bound. According to the present invention, columns may be bound to constant values or correlated columns or columns that are already bound. The bound columns, if any, are then analyzed to determine whether any of the bound columns comprise a key for its associated table. If these conditions exist, then the query satisfies the 1-tuple condition, in that it returns at most one tuple. Once the generalized 1-tuple condition has been identified to exist for the query, important query transformations can be performed for optimization purposes. These query transformations comprise the transformation of scalar subqueries into joins, or the elimination of distinctiveness requirements (i.e., DISTINCT keywords) from SELECT clauses.
申请公布号 US5615361(A) 申请公布日期 1997.03.25
申请号 US19950384759 申请日期 1995.02.07
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 LEUNG, TING Y.;PIRAHESH, MIR H.;SIMMEN, DAVID E.;STRAIN, LORI G.;TIWARI, SANJAI
分类号 G06F17/30;(IPC1-7):G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址