The invention relates to the technical field of
database compression, and particularly discloses a self-adaptive
data compression method,
system, device and product for a
database, and the method comprises the following steps: reading data from the
database; calculating the data volume, the data repetition rate, the data repetition mode and the data missing rate of the data; inputting the data volume, the data repetition rate, the data repetition mode and the data missing rate into a pre-trained
machine learning model, calculating to obtain a
classification result, and determining an optimal compression
algorithm; and creating an
asynchronous data compression thread in a database, and compressing the data by adopting the optimal compression
algorithm. According to the method, the data volume, the data repetition rate, the data repetition mode and the data missing rate of the data are used as classification features, and a proper optimal compression
algorithm is selected in a targeted manner according to the four classification features by utilizing a pre-trained
machine learning model, so that the occupation of a database storage space is reduced, the
data transmission and query efficiency is improved, and the
data compression efficiency is improved. The storage cost is reduced.