Invention Grant
- Patent Title: Method and apparatus for storing data
-
Application No.: US15751072Application Date: 2016-06-20
-
Publication No.: US10649905B2Publication Date: 2020-05-12
- Inventor: Zhi Kong , Boxue Yin
- Applicant: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
- Applicant Address: CN Beijing
- Assignee: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
- Current Assignee: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
- Current Assignee Address: CN Beijing
- Agency: Lathrop GPM LLP
- Priority: com.zzzhc.datahub.patent.etl.us.BibliographicData$PriorityClaim@13e339e1
- International Application: PCT/CN2016/086343 WO 20160620
- International Announcement: WO2017/117919 WO 20170713
- Main IPC: G06F12/00
- IPC: G06F12/00 ; G06F13/00 ; G06F13/28 ; G06F12/0875 ; G06F16/22 ; G06F16/2455 ; G06F12/0882 ; G06F12/0893 ; G06F12/1045

Abstract:
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.
Public/Granted literature
- US20180300250A1 METHOD AND APPARATUS FOR STORING DATA Public/Granted day:2018-10-18
Information query