Method and device for processing database redo data

A database and redo technology, applied in the field of communication network, can solve the problems of time-consuming large data copy, low redo data processing efficiency, affecting system throughput, etc., and achieve the effect of improving processing efficiency and concurrent throughput

Active Publication Date: 2015-11-25
宁波阶梯教育科技有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because redo data has timing constraints, when multiple threads copy redo data to the redo queue, the timing needs to be guaranteed within the protection scope of the global redo queue lock, that is, redo must be preempted every time redo data is written. Time-consuming data copy after queue lock
[0004] In the existing technology, multiple threads can only generate and copy redo data in a serial manner, so there is a defect of low redo data processing efficiency, which affects the throughput of the system under concurrent application of large business volume

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for processing database redo data
  • Method and device for processing database redo data
  • Method and device for processing database redo data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0025] An embodiment of the present invention provides a method for processing database redo data, which is applied to a server, where a data reading thread and multiple application threads run in the server, and the multiple application threads modify the database in a concurrent manner, please refer to figure 1 , the method includes:

[0026] Step 101: Each application thread among the plurality of application threads generates redo data according to the operati...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Embodiments of the present invention provide a method and an apparatus for processing redo data in a database, where the method includes: generating, by each application thread of multiple application threads included in a server, 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 releasing the time sequence queue lock after the saving ends; and determining, by a data reading thread, 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. With use of the present invention, redo data processing efficiency can be improved by separating a time sequence queue from a data queue, thereby increasing a concurrent throughput of a database system.

Description

technical field [0001] The invention relates to the technical field of communication network, in particular to a method and a device for processing database redo data. Background technique [0002] The redo log (redolog) is an important guarantee for data reliability in database operations, and can provide more data security protection than the file system. Its basic principle is that when the database modification operation is submitted, the data will not be written into the data file on the disk immediately, but stored in the memory, so as to avoid writing into the data file every time the database update request is required, thereby improving the performance of the database. Update performance; and generate redo data (redodata) according to the modification operation and write it to the disk to become a redo log, so as to avoid data loss due to the loss of memory data in the event of a failure. When the database operation process fails, the data can be recovered through ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/38G06F11/14
CPCG06F17/30368G06F16/2358G06F16/2343G06F11/1471G06F2201/825G06F11/1435G06F11/1464G06F2201/84G06F2201/80
Inventor 王南
Owner 宁波阶梯教育科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products