Method and apparatus for processing redo data in database
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
Information query
Patent Agency Ranking
0/0