摘要
汇总表存储的是事先计算好的汇总数据,在数据仓库查询调优中是至关重要的。分析了汇总表数据生成的三种方法:即触发器、存储过程、物化视图;用实例阐述了物化视图的使用方法和优点,即灵活的数据刷新方式、减少繁重的编程工作、查询重写机制保证应用独立性等,指出了物化视图是实现汇总表的理想选择。
Aggregate tables store the pre--calculated summaries, and are critical in query performance tuning in a data warehouse. Analyzed the three methods of aggregates data building: triggers, stored procedures and materialized views. Stated the methods, usages and advantages of materialized views via examples, i. e. flexible refresh method, reduction of burdensome programming workload, query rewrite mechanism insuring application independence and so on. Indicated materialized views are ideal choice for aggregate tables.
出处
《衡阳师范学院学报》
2012年第6期59-62,共4页
Journal of Hengyang Normal University
基金
The Scientific Research Fund of Hunan Provincial Education Department(No:11B018)
the Scientific Research fund of Hengyang Normal University(No 11B43)
关键词
物化视图
汇总表
数据仓库
materialized view
aggregate table
data warehouse