Method for achieving data caching in database synchronization process

A data cache and database technology, which is applied in the construction of synchronization systems to synchronize data cache and realize data cache field in database synchronization. problem to avoid system crash problems

Active Publication Date: 2014-07-23
ZHEJIANG UNIV
View PDF3 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The traditional data synchronization cache technology adopts the method of independently opening and managing memory space, which meets the basic needs of data synchronization, but this method has the following defects: 1) When the system encounters a downtime or power failure, the system restarts After startup, the synchronization data cannot be recovered; 2) There is no mechanism to measure the accumulation of data in data synchronization and a feedback mechanism; 3) The memory space is limited, and when the cached data increases sharply, the system stability drops sharply
4) After the synchronization is completed, the synchronization data cannot be viewed and retrieved

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 for achieving data caching in database synchronization process
  • Method for achieving data caching in database synchronization process
  • Method for achieving data caching in database synchronization process

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0028] The present invention adopts three storage methods, such as figure 1 As shown, the memory space storage adopts a fixed-length queue, which has two pointers: memory data consumption pointer and memory data insertion pointer. The memory data consumption pointer has an attribute d0, which points to the next possible (if d0==d, it can be consumed, otherwise it cannot be consumed) consumed data in the queue. Each time a data is consumed, d0 is incremented by 1, and the memory data consumption pointer points to After moving one position; the memory data insertion pointer points to the next position where data can be inserted. The memory space stores the data to be consumed, which ensures a fast response when the consumption request comes. The database stores each synchronization data, and when the data to be synchronized arrives in the cache...

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 invention discloses a method for achieving data caching in the database synchronization process. The method includes the insertion step and the consumption step. In the insertion step, memory space with a fixed length is developed in a memory and used for storing monitored source database synchronous data; a list is newly established in a database and used for storing the monitored source database synchronous data and newly-added attributes of the synchronous data. In the consumption step, when a data consumption request is received, reading is conducted on the memory space, if reading fails, retrieval is conducted on the list of the database, in the reading process, if no data exist in the memory space, the data are copied to the memory from the list of the database at the moment, and then reading is conducted on the memory. The pressure of the memory space is relieved through database synchronous recording, and the problem that a system breaks down due to the fact that the synchronous data are instantly and rapidly increased is solved; the synchronous data can be restored after the system is restarted.

Description

technical field [0001] The invention relates to the field of database data synchronization, mainly a method for constructing a synchronization data cache in a synchronization system, and in particular to a method for realizing data cache in database synchronization. Background technique [0002] Database data synchronization refers to an important technology to maintain the integrity and unity of data in different databases in distributed data storage. With the development of the Internet, the service scope of the network service system is getting larger and larger, the service load is getting heavier, and the service security requirements are getting higher and higher. The distributed database storage system or the master-slave mode database storage system has become the core of the network system. inevitable choice. In this mode, database synchronization technology emerges as the times require, which keeps data integrity and unity between different databases, and improves...

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 Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/27
Inventor 尹建伟陈杨李莹邓水光吴健吴朝晖
Owner ZHEJIANG UNIV
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