Invention Grant
US08521959B2 Method and device for recovering description information, and method and device for caching data in database
有权
用于恢复描述信息的方法和设备,以及用于在数据库中缓存数据的方法和设备
- Patent Title: Method and device for recovering description information, and method and device for caching data in database
- Patent Title (中): 用于恢复描述信息的方法和设备,以及用于在数据库中缓存数据的方法和设备
-
Application No.: US13622139Application Date: 2012-09-18
-
Publication No.: US08521959B2Publication Date: 2013-08-27
- Inventor: Zhenlong Zhang , Shuai Zhou
- Applicant: Huawei Technologies Co., Ltd.
- Applicant Address: CN Shenzhen
- Assignee: Huawei Technologies Co., Ltd.
- Current Assignee: Huawei Technologies Co., Ltd.
- Current Assignee Address: CN Shenzhen
- Agency: Leydig, Voit & Mayer, Ltd.
- Priority: CN201110433019 20111221
- Main IPC: G06F12/16
- IPC: G06F12/16

Abstract:
A method for recovering description information, or a method for caching data in a database, includes: judging whether a database is closed normally after the last operation; if the database is not closed normally, traversing each data block in a level-2 cache, where corresponding disk location information is saved in a header of each data block; obtaining a data block in a disk according to the disk location information; and when the obtained data block in the disk is the same as a corresponding data block in the level-2 cache, establishing description information according to location information of the data block in the disk and location information of the data block in the level-2 cache, where the description information is used to describe correspondence between the location information of data in the disk and the location information of data in the level-2 cache.
Public/Granted literature
Information query