发明名称 Method and system for performing query optimization using a hybrid execution plan
摘要 An improved method, system, and computer program product is disclosed that provides a hybrid approach to optimization which allows different subsets of data accessed by a query to be optimized with different access paths and execution approaches. Transformations may be performed to re-write the query, which restructures the query in a way that facilitates the hybrid optimization process. Multiple transformations may be interleaved to produce an efficient re-written query.
申请公布号 US8903805(B2) 申请公布日期 2014.12.02
申请号 US201012860294 申请日期 2010.08.20
申请人 Oracle International Corporation 发明人 Lee Allison;Zait Mohamed;Zhu Yali
分类号 G06F17/30 主分类号 G06F17/30
代理机构 Vista IP Law Group, LLP 代理人 Vista IP Law Group, LLP
主权项 1. A computer implemented method for optimizing a query, comprising: receiving a query that accesses a set of a data having a first subset accessible by index and an established second subset accessible by sequential scan and not accessible by index wherein the query is permitted to access the set of data by sequential scan and not by index; using a processor to perform a transformation to re-write the query based on the first subset of data being accessible by index and the second subset of data being accessible by sequential scan and not accessible by index which results in a transformed query, wherein the transformed query includes a first query portion corresponding to the first subset that is permitted to access the first subset of data by index and a second query portion corresponding to the second subset that is permitted to access the second subset by sequential scan; and optimizing the transformed query such that the first query portion corresponds to a first execution plan and the second query portion corresponds to a second execution plan, wherein the first execution plan is different from the second execution plan.
地址 Redwood Shores CA US