首页> 外国专利> Method and apparatus for predicting relative selectivity of database query conditions using respective cardinalities associated with different subsets of database records

Method and apparatus for predicting relative selectivity of database query conditions using respective cardinalities associated with different subsets of database records

机译:用于使用与数据库记录的不同子集相关联的各个基数来预测数据库查询条件的相对选择性的方法和装置

摘要

A database management system associates, for one or more database fields, a respective representation of cardinality with different discrete subsets of database records, the subsets preferably being defined by different quantiles of an equal height histogram. The system predicts a relative number of records responsive to a query condition using the representation of cardinality of a quantile in which a query-specified value lies. Preferably, a relative number of responsive records is estimated as a quantile size representation divided by a cardinality representation. The system uses this prediction to determine an optimum query execution strategy. Preferably, the system derives histogram data including cardinality and ordinal numbers corresponding to each quantile using sampling techniques.
机译:数据库管理系统针对一个或多个数据库字段将基数的相应表示与数据库记录的不同离散子集相关联,所述子集优选地由相等高度直方图的不同分位数来定义。该系统使用其中包含查询指定值的分位数的基数表示来预测响应查询条件的相对记录数。优选地,响应记录的相对数目被估计为分位数表示除以基数表示。系统使用此预测来确定最佳查询执行策略。优选地,该系统使用采样技术得出包括与每个分位数相对应的基数和序数的直方图数据。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号