IP Library Granted Patent US 9,450,605
Granted Patent B2
US 9,450,605 · App. 13/674,477 · Granted Sep 20, 2016

Block compression of tables with repeated values

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,450,605
App. No.
13/674,477
Granted
Sep 20, 2016
Kind
B2
Abstract

Methods and apparatus, including computer program products, for block compression of tables with repeated values. In general, value identifiers representing a compressed column of data may be sorted to render repeated values contiguous, and block dictionaries may be generated. A block dictionary may be generated for each block of value identifiers. Each block dictionary may include a list of block identifiers, where each block identifier is associated with a value identifier and there is a block identifier for each unique value in a block. Blocks may have standard sizes and block dictionaries may be reused for multiple blocks.

Claims (56)

1. A computer program product, embodied in a non-transitory computer-readable storage medium, the computer program product being operable to cause at least one data processing apparatus to perform operations comprising:

performing, in parallel, block compression for each of a plurality of columns of data;

storing, for each column of data, changes to the column of data after the block compression is performed in a different one of a plurality of delta buffers, wherein the delta buffers are separate from the corresponding columns of data; and

asynchronously integrating, for each column of data, changes stored in the corresponding delta buffer into the corresponding column of data,

wherein the columns of data and the delta buffers are searchable prior to the integration, and

wherein search results from the columns of data and the delta buffers are merged to form a composite result.

2. A computer program product as in claim 1 , wherein performing block compression comprises, for each column:

compressing the column of data with dictionary-based compression, the compressing comprising generating a column of value identifiers, each of the value identifiers representing a unique value in the column of data;

sorting values represented in the one or more columns of data, the sorting including ordering the one or more columns of data such that the one or more columns of data are ordered in order of frequency of most frequently occurring value in different columns of the one or more columns of data;

generating a bit vector representation of each column representing whether a value in rows of each column occurs frequently;

generating a number representing frequency of the most frequently occurring value for each column;

removing bits corresponding to the most frequently occurring value from the bit vector to obtain a shortened bit vector, the shortened bit vector obtained for each column; and

storing the generated number and the shortened bit vector for each column, the stored number and the shortened bit vector for each column representing the compressed data, the compressed data being decompressed when a search is performed, the decompressed data being compressed again after the search is performed.

3. A computer program product as in claim 1 , wherein the compressing is initiated when a column of data comprises one value that has a repetition frequency significantly higher than a repetition frequency of other values in the column.

4. A computer program product as in claim 1 , wherein the value identifiers are values representing structured business data having data dependencies across a same row of a table.

5. A computer program product as in claim 4 , wherein the business data comprises business objects modeled as sets of joined tables.

6. A computer program product as in claim 5 , wherein the operations of the product are performed in parallel on a plurality of hardware servers.

7. A computer program product as in claim 1 , wherein the search comprises searching for data in the one or more columns of data.

8. A computer-implemented method comprising:

performing, in parallel, block compression for each of a plurality of columns of data;

storing, for each column, changes to the column of data after the block compression is performed in a different one of a plurality of delta buffers, wherein the delta buffers are separate from the corresponding columns of data; and

asynchronously integrating, for each column, changes stored in the delta buffer into the column of data, wherein, for each column, both of the column of data and the delta buffer are searchable prior to the integration, wherein search results from the columns of data and the delta buffers are merged to form a composite result.

9. A method as in claim 8 , wherein performing block compression comprises, for each column:

compressing the column of data with dictionary-based compression, the compressing comprising generating a column of value identifiers, each of the value identifiers representing a unique value in the column of data;

sorting values represented in the one or more columns of data, the sorting including ordering the one or more columns of data such that the one or more columns of data are ordered in order of frequency of most frequently occurring value in different columns of the one or more columns of data;

generating a bit vector representation of each column representing whether a value in rows of each column occurs frequently;

generating a number representing frequency of the most frequently occurring value for each column;

removing bits corresponding to the most frequently occurring value from the bit vector to obtain a shortened bit vector, the shortened bit vector obtained for each column; and

storing the generated number and the shortened bit vector for each column, the stored number and the shortened bit vector for each column representing the compressed data, the compressed data being decompressed when a search is performed, the decompressed data being compressed again after the search is performed.

10. A method as in claim 8 , wherein the compressing is initiated when a column of data comprises one value that has a repetition frequency significantly higher than a repetition frequency of other values in the column.

11. A method as in claim 8 , wherein the value identifiers are values representing structured business data having data dependencies across a same row of a table.

12. A method as in claim 8 , wherein the business data comprises business objects modeled as sets of joined tables.

13. A method as in claim 12 , wherein the operations of the product are performed in parallel on a plurality of hardware servers.

14. A method as in claim 8 , wherein the search comprises searching for data in the one or more columns of data.

15. A method as in claim 8 , wherein the performing, storing, and integrating are performed by at least one data processor forming part of at least one computing system.

16. A system comprising:

at least one programmable processor; and

memory storing instructions that, when executed by the at least one programmable processor, cause the at least one programmable processor to perform operations comprising:

performing, in parallel, block compression for each of a plurality of columns of data, the block compression comprising generating, for each column, a block offset column such that each value of the block offset column indicates an offset at which a block starts in the one or more columns of data;

storing, for each column, changes to the column of data after the block compression is performed in a different one of a plurality of delta buffers, wherein the delta buffers are separate from the columns of data;

asynchronously integrating, for each column, changes stored in the corresponding delta buffer into the corresponding column of data;

receiving a query; and

searching both the compressed column of data and the delta buffer for data responsive to the query.

17. A system as in claim 16 , wherein performing block compression comprises, for each column:

compressing the column of data with dictionary-based compression, the compressing comprising generating a column of value identifiers, each of the value identifiers representing a unique value in the column of data;

sorting values represented in the one or more columns of data, the sorting including ordering the one or more columns of data such that the one or more columns of data are ordered in order of frequency of most frequently occurring value in different columns of the one or more columns of data;

generating a bit vector representation of each column representing whether a value in rows of each column occurs frequently;

generating a number representing frequency of the most frequently occurring value for each column;

removing bits corresponding to the most frequently occurring value from the bit vector to obtain a shortened bit vector, the shortened bit vector obtained for each column; and

storing the generated number and the shortened bit vector for each column, the stored number and the shortened bit vector for each column representing the compressed data, the compressed data being decompressed when a search is performed, the decompressed data being compressed again after the search is performed.

18. A system as in claim 16 , wherein the compressing is initiated when a column of data comprises one value that has a repetition frequency significantly higher than a repetition frequency of other values in the column.

19. A system as in claim 16 , wherein the value identifiers are values representing structured business data having data dependencies across a same row of a table.

20. A system as in claim 19 , wherein:

the business data comprises business objects modeled as sets of joined tables;

the operations of the product are performed in parallel on a plurality of hardware servers; and

the search comprises searching for data in the one or more columns of data.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 1, 2016
From: FAERBER, FRANZ; RADESTOCK, GUENTER; ROSS, ANDREW
To: SAP SE
Reel/Frame 039064/0236 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 19, 2016
From: FAERBER, FRANZ; RADESTOCK, GUENTER; ROSS, ANDREW
To: SAP AG
Reel/Frame 038646/0633 →
CHANGE OF NAME Recorded Aug 26, 2014
From: SAP AG
To: SAP SE
Reel/Frame 033625/0223 →