Invention Grant
- Patent Title: Method and apparatus for processing redo data in database
-
Application No.: US14828146Application Date: 2015-08-17
-
Publication No.: US10387258B2Publication Date: 2019-08-20
- Inventor: Nan Wang
- 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
- Priority: CN201310101317 20130326
- Main IPC: G06F16/23
- IPC: G06F16/23 ; G06F11/14

Abstract:
Embodiments of the present invention provide a method and an apparatus for processing redo data in a database, where the method includes: generating redo data according to a database modification operation, accordingly saving the redo data in a buffer allocated to each application thread, saving an identifier of the application thread in a time sequence queue after a time sequence queue lock is acquired; and determining that a data reading condition is satisfied, reading a sequence of the identifiers of the application threads from the time sequence queue, successively reading a piece of redo data from the buffer of each application thread corresponding to the identifier of each application thread in the time sequence queue, and writing the piece of redo data to a redo queue. Redo data processing efficiency can be improved by separating a time sequence queue from a data queue.
Public/Granted literature
- US20150355975A1 METHOD AND APPARATUS FOR PROCESSING REDO DATA IN DATABASE Public/Granted day:2015-12-10
Information query