| CPC G06F 16/2246 (2019.01) | 16 Claims |

|
1. A data processing method, comprising:
acquiring hot keys read from a log structure merge (LSM) tree within a preset duration;
determining a total size of the read hot keys;
adjusting a size of each of a plurality of levels of the LSM tree based on the determined total size of the read hot keys,
wherein the acquiring of hot keys read from the log structure merge (LSM) tree within a preset duration comprises:
determining a reading hotness threshold; and
acquiring hot keys determined based on the reading hotness threshold, and
wherein the adjusting of the size of each of the plurality of levels of the LSM tree based on the total size of the read hot keys comprises:
determining a total size of an upper level of a current level in the plurality of levels within the preset duration; and
adjusting the size of each of the plurality of levels based on the total size of the read hot keys and the total size of the upper level of the current level.
|