Invention Grant
- Patent Title: Bitmap-based count distinct query rewrite in a relational SQL algebra
-
Application No.: US16653639Application Date: 2019-10-15
-
Publication No.: US11379476B2Publication Date: 2022-07-05
- Inventor: Sabina Petride , Mohamed Ziauddin , Praveen T. J. Kumar , Huagang Li , Andrew Witkowski , Sankar Subramanian
- 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 ; G06F16/23 ; G06F16/242

Abstract:
Techniques are described for storing and maintaining, in a materialized view, bitmap data that represents a bitmap of each possible distinct value of an expression and rewriting a query for a count of distinct values of the expression using the materialized view. The materialized view contains bitmap data that represents a bitmap of each possible distinct value of a first expression, and aggregate values of additional expressions, and is stored in memory or on disk by a database system. The database system receives a query that requests a number of distinct values, of the first expression, and an aggregate value for an additional expression. In response, the database system, rewrites the query to: compute the number of distinct values by counting the bits in the bitmap data of the materialized view that are set to the first value, and obtains the aggregate value for the additional expression in the materialized view.
Public/Granted literature
- US20210109930A1 BITMAP-BASED COUNT DISTINCT QUERY REWRITE IN A RELATIONAL SQL ALGEBRA Public/Granted day:2021-04-15
Information query