Method and device for recovering description information, and method and device for caching data in database
    2.
    发明授权
    Method and device for recovering description information, and method and device for caching data in database 有权
    用于恢复描述信息的方法和设备,以及用于在数据库中缓存数据的方法和设备

    公开(公告)号:US08521959B2

    公开(公告)日:2013-08-27

    申请号:US13622139

    申请日:2012-09-18

    CPC classification number: G06F12/0866 G06F2212/465

    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.

    Abstract translation: 一种用于恢复描述信息的方法或用于在数据库中缓存数据的方法包括:在最后一个操作之后判断数据库是否正常关闭; 如果数据库未正常关闭,则遍历二级缓存中的每个数据块,其中对应的磁盘位置信息保存在每个数据块的头部中; 根据磁盘位置信息获取磁盘中的数据块; 并且当所获得的盘中的数据块与二级高速缓存中的相应数据块相同时,根据盘中数据块的位置信息和级别2中数据块的位置信息建立描述信息 高速缓存,其中描述信息用于描述磁盘中的数据的位置信息与二级缓存中的数据的位置信息之间的对应关系。

Patent Agency Ranking