发明名称 COST-BASED QUERY REWRITE USING MATERIALIZED VIEWS
摘要 A system and method of rewriting a database query where the query contains an aggregate includes the following. If one or more aggregate materialized views are considered, rewriting the query using an aggregate materialized view. If one or more non-aggregate multi-table materialized views are considered, the query is rewritten using a multi-table materialized view. A join cost is determined for each such non-aggregate multi-table materialized view. If one or more non-aggregate single table materialized views are considered, the query is rewritten using the single table materialized view. A join cost is determined for each such non-aggregate single table materialized view. Finally, a current total cost is determined for use of various materialized views as a function of join cost, aggregation cost and spool cost to select a rewritten query.
申请公布号 US2010030731(A1) 申请公布日期 2010.02.04
申请号 US20080183571 申请日期 2008.07.31
申请人 TERADATA US, INC. 发明人 GUI HONG;AU GRACE;CHIANG KUORONG
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项
地址