US 12,393,609 B2
Database data compression method and storage device
Yongbing Huang, Beijing (CN); and Chengda Wu, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Guangdong (CN)
Filed on Apr. 25, 2024, as Appl. No. 18/645,926.
Application 18/645,926 is a continuation of application No. PCT/CN2021/126976, filed on Oct. 28, 2021.
Prior Publication US 2024/0273121 A1, Aug. 15, 2024
Int. Cl. G06F 7/00 (2006.01); G06F 16/25 (2019.01); G06F 16/28 (2019.01)
CPC G06F 16/285 (2019.01) [G06F 16/258 (2019.01)] 18 Claims
OG exemplary drawing
 
1. A database data compression method, comprising:
parsing, by a processor of a data storage device, a first data block to obtain m pieces of first data, wherein the first data is row data or column data, the first data block is obtained based on obtained database data, and m is an integer greater than 1;
classifying, by a machine learning classifier executed by the processor of the data storage device, the m pieces of first data to obtain n classification categories, wherein each classification category comprises at least one piece of first data, n is an integer greater than or equal to 1, and any two or more pieces of first data classified into a same classification category are predicted to have an association that indicates similar data content;
transforming, by the processor of the data storage device, one or more pieces of at least one piece of first data in a first classification category to obtain target data comprising concatenating a plurality of pieces of the at least one piece of first data in the first classification category to obtain concatenated data and using the concatenated data as the target data, wherein the first classification category is one of the n classification categories;
compressing, by the processor of the data storage device, the target data to obtain compressed data; and
storing, by the processor of the data storage device, the compressed data in a storage medium of the data storage device.