Data synchronizing method and device
A data synchronization and data technology, applied in the database field, can solve the problems of low disk database processing performance, in-memory database data cannot be persistent and safe storage, etc., to achieve high reliability and real-time synchronization effect.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0022] figure 1 It is a flow chart of the data synchronization method provided by Embodiment 1 of the present invention, specifically including steps S101 to S103, which are described in detail as follows:
[0023] S101. Synchronize the data in the disk database to the memory database, so that the data in the memory database and the disk database are consistent.
[0024] Specifically, when the system is started, the data in the disk database is synchronized to the memory database, so that the data in the memory database and the disk database are consistent.
[0025] Usually, in order to improve performance, the application program and the memory database are located on the same server, and for data security, the disk database and the memory database can be respectively configured on different servers.
[0026] S102. When the data in the memory database changes, record the database transaction that causes the data change into the transaction log.
[0027] A database transacti...
Embodiment 2
[0034] figure 2 It is a flow chart of the data synchronization method provided in Embodiment 2 of the present invention, specifically including steps S201 to S204, which are described in detail as follows:
[0035] S201. Synchronize the data in the disk database to the memory database, so that the data in the memory database and the disk database are consistent.
[0036] Specifically, when the system is started, the data in the disk database is synchronized to the memory database, so that the data in the memory database and the disk database are consistent.
[0037] Usually, in order to improve performance, the application program and the memory database are located on the same server, and for data security, the disk database and the memory database can be respectively configured on different servers.
[0038] S202. When the data in the memory database changes, record the database transaction that causes the data change into the transaction log.
[0039] A database transact...
Embodiment 3
[0061] image 3 It is a schematic structural diagram of the data synchronization device provided by Embodiment 3 of the present invention. For convenience of description, only the parts related to the embodiment of the present invention are shown. image 3 The exemplary apparatus for data synchronization may be the executing body of the method for data synchronization provided in the first embodiment, which may be a server or a functional module in the server. image 3 The example device for data synchronization mainly includes: an export module 31, a recording module 32 and a synchronization module 33, and each functional module is described in detail as follows:
[0062] The export module 31 is used to synchronize the data in the disk database to the memory database, so that the data in the memory database and the disk database are consistent;
[0063] Recording module 32, for when the data in memory database changes, the database transaction that will cause data to change ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com