Invention Grant
- Patent Title: Densification of expression value domain for efficient bitmap-based count(distinct) in SQL
-
Application No.: US16726597Application Date: 2019-12-24
-
Publication No.: US11429606B2Publication Date: 2022-08-30
- Inventor: Sabina Petride , Mohamed Ziauddin , Praveen T.J. Kumar
- Applicant: ORACLE INTERNATIONAL CORPORATION
- Applicant Address: US CA Redwood Shores
- Assignee: ORACLE INTERNATIONAL CORPORATION
- Current Assignee: ORACLE INTERNATIONAL CORPORATION
- Current Assignee Address: US CA Redwood Shores
- Agency: Hickman Becker Bingham Ledesma LLP
- Main IPC: G06F16/00
- IPC: G06F16/00 ; G06F16/2453 ; G06F16/22

Abstract:
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.
Public/Granted literature
- US20210191941A1 DENSIFICATION OF EXPRESSION VALUE DOMAIN FOR EFFICIENT BITMAP-BASED COUNT(DISTINCT) IN SQL Public/Granted day:2021-06-24
Information query