| CPC G06F 16/285 (2019.01) [G06F 16/258 (2019.01)] | 18 Claims |

|
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.
|