This invention relates to the field of
database cache management technology, specifically to an LSM engine
data cache optimization method, comprising the following steps: based on the cache area data of the LSM storage engine, recording the
access frequency of implementation rules, statistically analyzing the distribution density of implementation rules, organizing the data into a priority sequence, and generating a set of implementation rule access distribution information. In this invention, by recording the
access frequency and distribution location of implementation rules, the distribution density of implementation rules is accurately grasped, and these are grouped and organized into a priority sequence to improve cache data reading efficiency. By adjusting and optimizing the data storage
layout, high-
frequency data retrieval latency is reduced. Adjusting the cache area location, calculating capacity differences, and repartitioning solves the problem of uneven storage allocation and improves
resource utilization. By comparing high-frequency implementation rules to optimize data distribution, dynamically adjusting the matching of new implementation rules, the
hit rate and response speed are enhanced,
system load is reduced, and storage performance and
resource allocation efficiency are significantly improved.