发明名称 Supporting aggregate expressions in query rewrite
摘要 In one embodiment, a plurality of materialized views is stored, where each view includes a set of aggregate expressions. Storing each materialized view comprises identifying one or more disjuncts in the set of aggregate expressions, generating a set of disjunct trees that represent the set of aggregate expressions, and storing the set of disjunct trees. When a query that requests aggregated data is received, one or more disjuncts are identified in an aggregate expression specified in the query. A disjunct tree for the disjuncts in the query is generated. Based on the disjunct tree for the query and on the set of disjunct trees for each materialized view, a particular materialized view is determined from the plurality of materialized views. The query is rewritten into an equivalent query that references the particular materialized view, where the equivalent query would retrieve the requested aggregated data from the particular materialized view.
申请公布号 US2009024571(A1) 申请公布日期 2009.01.22
申请号 US20070879990 申请日期 2007.07.18
申请人 ORACLE INTERNATIONAL CORPORATION 发明人 THIYAGARAJAN MURALI;KUMAR PRAVEEN
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址