Method and apparatus for storing data
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsZhi Kong, Boxue Yin
Life of this patent
Estimating the term…
Loading patent…
AssigneeBeijing Baidu Netcom Science Technology Co., Ltd.
InventorsZhi Kong, Boxue Yin
Estimating the term…
The present disclosure discloses a method and apparatus for storing data. A specific embodiment of the method includes: judging whether a remaining storage space in a compressed data page is greater than a storage space threshold, in response to to-be-stored data to be written to the compressed data page in a cache storage region of a database; if not, determining a non-compressed data page among the non-compressed data pages for generating the compressed data page; and compressing the determined non-compressed data page to generate the compressed data page. This embodiment achieves the generation of the compressed data page in advance, such that each time the data is written to the compressed data page, it is ensured that there is enough storage space in the compressed data page to store the written data, thus reducing the system overhead when writing the data to the compressed data page, enhancing the writing efficiency of the system.
A method for storing data, the method comprising:
An apparatus for storing data, the apparatus comprising:
A non-transitory computer storage medium, the non-transitory computer storage medium stores a computer readable instruction that can be executed by a processor, when the computer readable instruction is executed by the processor, the processor executes a method for storing data, the method comprising:
Dependencies are inferred from the claim text.