A data processing method and device, electronic equipment and storage medium

By detecting and filtering files to be merged in the RocksDB database, identifying and filtering data with and without TTL characteristics, the problems of index space release and database compatibility are solved, achieving the effect of quickly releasing index space and retaining data.

CN122240607APending Publication Date: 2026-06-19ZHEJIANG UNIVIEW TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ZHEJIANG UNIVIEW TECH CO LTD
Filing Date
2024-12-18
Publication Date
2026-06-19

Smart Images

  • Figure CN122240607A_ABST
    Figure CN122240607A_ABST
Patent Text Reader

Abstract

This invention discloses a data processing method, apparatus, electronic device, and storage medium. The method includes: detecting each file to be merged in the current layer of a target RocksDB database; for each file to be merged, traversing each key-value data entry in the file to determine the data type of the key-value data; wherein the data type includes TTL-restricted data and non-TTL-restricted data; if the key-value data is determined to be TTL-restricted data, determining whether the key-value data is expired data; when the key-value data is determined to be non-TTL-restricted data or non-expired data, writing the key-value data to a newly created file in the next layer of the current layer. This solution can quickly release the index space of the RocksDB database without the user's awareness, and it also makes databases with TTL characteristics compatible with databases without TTL, retaining non-TTL-restricted key-value data written to the RocksDB database.
Need to check novelty before this filing date? Find Prior Art