首页> 外国专利> DENSIFICATION OF EXPRESSION VALUE DOMAIN FOR EFFICIENT BITMAP-BASED COUNT(DISTINCT) IN SQL

DENSIFICATION OF EXPRESSION VALUE DOMAIN FOR EFFICIENT BITMAP-BASED COUNT(DISTINCT) IN SQL

机译:表达式域的致密化,以便在SQL中获得基于位图的基于计数(独特)

摘要

Techniques are provided for bitmap-based computation of a COUNT(DISTINCT) function, where the bitmaps are generated based on ranks of target expression values. According to an embodiment, the ranks are computed using the DENSE_RANK function. The bitmaps may be maintained in a materialized view. Bitmap data that represents the ranks for target expression values occurring in data for a given group is divided across multiple bucket bitmaps, each corresponding to a distinct sub-range of the ranks. According to an embodiment, target expression value ranks are computed relative to partitions of the target expression values. When these partitions correspond to a subset (not necessarily strict) of the target query grouping keys for a query rewrite, the resulting bitmaps allow computation of multiple levels of aggregation from the single set of bitmaps.
机译:提供基于位图的基于位图的计算的技术,其中基于目标表达式值的秩生成位图。根据一个实施例,使用dense_rank函数计算等级。位图可以保持在物化视图中。表示在给定组的数据中发生的目标表达式值的位图数据被划分为多个桶位图,每个桶位图对应于等级的不同子范围。根据一个实施例,相对于目标表达式值的分区计算目标表达式值等级。当这些分区对应于查询重写的目标查询分组键的子集(不一定是严格的)时,得到的位图允许计算从单个位图中的多级聚合。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号