DB2数据库查询优化策略Query Optimization Strategy of DB2 Database
王晓东,曹庆华,王卓
摘要(Abstract):
数据库的查询优化是改善应用程序性能的重要手段。通过分析IBM DB2数据库系统的最优化处理器的工作原理,对查询性能影响较大的统计信息更新、索引建立、SQL查询语句构造3个方面提出具体优化建议。建立了一套完整的测试方案,对每一条优化建议都使用具体SQL语句进行严格的验证。开发者要注意分析查询语句的时间开销和空间开销,才能写出较优的查询语句。
关键词(KeyWords): 最优化处理器;统计信息;索引;执行计划;查询优化
基金项目(Foundation):
作者(Author): 王晓东,曹庆华,王卓
参考文献(References):
- [1][美]Dennis Shasha,Philippe Bonnet.数据库性能调优———原理与技术[M].孟小峰,李战怀,等译.北京:电子工业出版社,2004.
- [2]庄济诚.DB2数据库管理与应用教程[M].北京:清华大学出版社,2004.
- [3]刘耸柏.DB2入门与提高[M].北京:清华大学出版社,2002.
- [4]Philippe Bonnet,Dennis Shasha.Database Tuning:Princi-ples,Experiments and Troubleshooting Techniques[M].Morgan Kaufmann,2002.
- [5]Yuanyuan Zhou,Angelos Bilas,Suresh Jagannathan,et al.VI Attached Database Storage[J].IEEE Transactions onParallel and Distributed Systems,2005,16(1):35 50.
- [6]Stefan Manegold,Peter Boncz,Martin Kersten.OptimizingMain Memory Join on Modern Hardware[J].IEEE Trans-actions on Knowledge and Data Engineering,2002,14(4):709 730.
- [7]Cai F F,Hull M H C,Bell D A.Buffer Management for HighPerformance Database Systems[J].High Performance Com-puting on the Information Super high Way,1997.HPC Asia′97 28 April 2 May 1997,Page(s):633 638.
- [8]Vassilios S Verykios,Elias N Houstis,John R.Mining thePerformance of Complex Systems[J].Proceeding of the 1999International Conference on Information Intelligence andSystems,1999.606 612.
- [9]严蔚民,吴伟民.数据结构(C语言版)[M].北京:清华大学出版社,1997.