Method and device for synchronizing embedded database to flash database

A database and embedded technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as data loss, shortening the life of Flash devices, and slow reading and writing speeds of Flash, so as to improve life and reduce frequent operations , the effect of increasing speed

Inactive Publication Date: 2013-02-13
COMBA TELECOM SYST CHINA LTD
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The memory database has the advantage of fast speed, but once the device is powered off or abnormally restarted, the data in the memory database will be lost; therefore, it is necessary to save the memory database data to the Flash database synchronously in time, but the bottleneck problem of the slow read and write speed of Flash is a great constraint
Frequent read and write operations on the Flash database shorten the life of the Flash device

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 synchronizing embedded database to flash database
  • Method and device for synchronizing embedded database to flash database
  • Method and device for synchronizing embedded database to flash database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] For ease of understanding, the following will be described in conjunction with the accompanying drawings.

[0023] This invention proposes a method for synchronizing the embedded database to the flash database, please refer to figure 1 , including the steps:

[0024] S101. Create an in-memory database, preset an update time, and synchronize data in the flash database to the in-memory database;

[0025] S102. Obtain the data of the embedded database to the memory database, and set a synchronous data pool;

[0026] Wherein, the synchronous data pool is used to identify whether the data in the memory database changes and the content of the data change.

[0027] Specifically, the synchronization data pool may include: table ID, parameter ID, table synchronization ID, and parameter synchronization ID; the description of each field is as follows:

[0028] Table ID: the internally generated globally unique ID of each data table in the memory database;

[0029] Parameter ID...

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 provides a method for synchronizing an embedded database to a flash database. The method comprises the following steps of: establishing an internal memory database, and pre-setting updating time; synchronizing data of the flash database to the internal memory database; obtaining data of the embedded database to the internal memory database, and arranging a synchronous data pool; when the updating time is up, traversing the synchronous data pool; and if the data of the internal memory data vary, obtaining varied data and updating the varied data to the flash database. The invention further provides a device for synchronizing the embedded database to the flash database, so that the frequent operation of flash equipment can be reduced; the service life of flash equipment is prolonged; and the speed of synchronizing the embedded database to the flash database is accelerated.

Description

technical field [0001] The invention relates to the field of computer data processing, in particular to a method and a device for synchronizing an embedded database to a flash database. Background technique [0002] With the development of social information technology, the application of embedded database is more and more extensive, especially in embedded devices. The biggest feature of embedded devices is the lack of hardware resources and the slow read and write speed of Flash, but the performance requirements are getting higher and higher. [0003] An existing solution is to use an in-memory database to implement data-related operations in the in-memory database. Due to the high speed of the in-memory database, the problem of operating the database is greatly improved. [0004] The memory database has the advantage of fast speed, but once the device is powered off or abnormally restarted, the data in the memory database will be lost; therefore, it is necessary to save t...

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
Inventor 陈元
Owner COMBA TELECOM SYST CHINA LTD
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