引用本文:吴胜利.估算查询结果大小的直方图方法之研究.软件学报,1998,9(4):285-289
【打印本页】   【下载PDF全文】   查看/发表评论  【EndNote】   【RefMan】   【BibTex】
←前一篇|后一篇→ 过刊浏览    高级检索
本文已被:浏览 4209次   下载 5817 本文二维码信息
码上扫一扫!
分享到: 微信 更多
估算查询结果大小的直方图方法之研究
吴胜利1
中国科学院软件研究所,北京,100080
摘要:
直方图是许多商用数据库系统中最常用的一种估算查询结果大小的方法.从实用的观点来看,过去已提出的一些直方图方法有局限性,主要是它们不能保证估算值的准确程度.本文将提出两种新的直方图方法,它们不仅使用方便,而且可以保证所有的估算值均在给定的误差范围内.此外,本文还探讨了不同的数据分布对直方图的影响,通过运用一些重要的参数刻画数据分布,用以帮助生成效果较佳的直方图.
关键词:  数据库系统,查询优化,查询代价的估算,直方图.
DOI:
分类号:
基金项目:本文研究得到国家自然科学基金资助.
Histogram Method for Size Estimation of Query Result
WU Sheng-li
Abstract:
Histogram is the commonest method for the size estimation of query result in many commercial database systems. Several histogram methods presented in the past have certain limitations in practicability due to their lack of guarantee of the accuracy of the estimation. In this paper, the author presents two kinds of new histogram methods, which are easy to use and can guarantee the accuracy of the estimation. Otherwise, the effect of different data distributions to histograms is discussed in the paper, and some important parameters of data distribution are introduced to help produce better histograms.
Key words:  Database systems, query optimization, estimation of query cost, histogram.