Unlock instant, AI-driven research and patent intelligence for your innovation.

Data synchronization method and device

A data synchronization and device technology, applied in the computer field, can solve problems affecting concurrency, large lock overhead, etc., to reduce sleep, reduce the time waiting for the end of synchronization, and reduce lengthy effects

Active Publication Date: 2021-11-16
ALIBABA GRP HLDG LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] An object of the present invention is to provide a data synchronization method and device to solve the problem that each existing request response process must enter a sleep state, which will bring additional context switching, and wake up at the same time will also bring relatively large lock overhead , issues affecting concurrency

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
  • Data synchronization method and device
  • Data synchronization method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0068] In a typical configuration of the present application, the terminal, the device serving the network and the trusted party all include one or more processors (CPUs), input / output interfaces, network interfaces and memory.

[0069] Memory may include non-permanent storage in computer readable media, in the form of random access memory (RAM) and / or nonvolatile memory such as read only memory (ROM) or flash RAM. Memory is an example of computer readable media.

[0070] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can be implemented by any method or technology for storage of information. Information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static rando...

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

The purpose of the present invention is to provide a data synchronization method and device, by comparing the storage location of the transaction data with the current synchronization location of the standby database based on the synchronization request, and judging the request response according to the comparison result Whether the process is put into sleep state, under the premise of ensuring the reliability of multiple copies, it can effectively reduce sleep or avoid sleep, improve the overall throughput rate when multiple copies of data are required in the application scenario of high concurrent writing, and reduce redundancy waiting. In addition, after the request response process writes the transaction data into the operating system shared cache corresponding to the main database, it initiates a synchronization request to the standby database to synchronize the transaction data to the standby database, and the synchronization request includes the storage location of the transaction data, Therefore, the transaction data can be sent to the standby database before it is stored in the disk of the main database, which shortens the waiting time and reduces the overall response delay.

Description

technical field [0001] The invention relates to the field of computers, in particular to a data synchronization method and equipment. Background technique [0002] like figure 1 As shown, the existing database needs to be divided into the following steps in order to realize the synchronization of multiple copies: [0003] 1. The user sends a request to end the transaction, including rollback (rollback) or commit (commit), and generates a corresponding request response process according to the request to end the transaction; [0004] 2. The request response process (Backend process) generates transaction data (redo / WAL), records the transaction data in the storage location of the standby database, that is, the WAL location (LSN), and writes the transaction data into the corresponding process shared cache of the main library ( walbuffer); [0005] 3. The request response process waits for the wal buffer to call the write interface, and writes the transaction data into the o...

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): G06F16/27
CPCG06F16/275
Inventor 周正中
Owner ALIBABA GRP HLDG LTD