Data storage method, device and equipment and storage medium
A data storage and data backup technology, which is applied in digital data processing, redundancy in computing, data error detection, response error generation, etc. The database cannot be rejoined, etc., to prevent data storage inconsistency and improve robustness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a flow chart of the steps of a data storage method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of data storage in a database cluster with read-write separation. The method can be executed by a data storage device, and the device can use hardware and / or software, see figure 1 , the embodiment of the present invention specifically includes the following steps:
[0028] Step 101. Send redo logs to the backup database, and determine the log sequence number of the redo logs, so that the backup database performs data backup based on the redo logs.
[0029] Among them, the backup database can be the backup database in the read-write separation database cluster. The backup database can back up data according to the log sent by the main database to maintain the consistency of the backup database and the main database data. The redo log can be the backup data for data backup. The redo log can include data operation...
Embodiment 2
[0043] figure 2 It is a flow chart of the steps of a data storage method provided by Embodiment 2 of the present invention. The embodiment of the present invention is based on the embodiment of the above invention. See figure 2 , the method of the embodiment of the present invention includes:
[0044] Step 201, sending the redo log to the backup database, and obtaining the record sequence number of each record information in the redo log.
[0045] Wherein, the record information can be the information of the operation record in the redo log, and the record information can specifically be the operation record formed by the data operation of the main database, the record number can be the sequence number of the corresponding operation record in the redo log, each The operation records can correspond to their respective record serial numbers.
[0046] Specifically, in the read-write separation database, the primary database can send redo logs to the backup database, and can r...
Embodiment 3
[0073] Figure 5It is a schematic structural diagram of a data storage device provided in Embodiment 3 of the present invention. The data storage device provided in the embodiment of the present invention can execute the data storage method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method . The device can be implemented by software and / or hardware, and specifically includes: a log sending module 301 , an information receiving module 302 and a data page brushing module 303 .
[0074] Wherein, the log sending module 301 is configured to send the redo log to the backup database, and determine the log sequence number of the redo log, so that the backup database performs data backup based on the redo log.
[0075] The information receiving module 302 is configured to receive execution feedback information after the backup database executes data backup.
[0076] The data page flush module ...
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