Data update method, device, equipment and medium
A data update and update technology, applied in database update, structured data retrieval, electronic digital data processing, etc., can solve problems such as data inconsistency, failure to update deduction records, and no guarantee of transaction synchronization, etc., to achieve data consistency Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] figure 2 It is a flow chart of a data update method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of updating data in a database cluster. The method can be executed by a data update device, which can be realized by software and / or hardware, and the device is associated with a master database. see figure 2 , the data update method provided in this embodiment includes:
[0041] S110. Send the transaction to be updated to at least one slave library.
[0042] Wherein, the slave database is the abbreviation of the slave database, and the slave database is data other than the master database in the database cluster.
[0043] Usually, a database cluster includes a master database and at least one slave database. The client sends the transaction to be updated to the master database, and the master database writes the transaction to be updated into the binary log to update data according to the transaction to be updated....
Embodiment 2
[0062] image 3 It is a flow chart of a data update method provided by Embodiment 2 of the present invention. This embodiment is an optional solution proposed on the basis of the foregoing embodiments. see image 3 , the data update method provided in this embodiment includes:
[0063] S210. Send the transaction to be updated to at least one slave library.
[0064] S220. Control the local database to update the transaction to be updated, and issue an update instruction to the at least one slave database synchronously.
[0065] S230. Using the main library service thread to generate a main library offline message according to the new main library elected by the local state machine, and using the main library working thread to log off the main library according to the main library offline message.
[0066] Usually, a third-party component elects a new master library, and the third-party component will send the elected new master library to each database, and each database wi...
Embodiment 3
[0078] Figure 4 It is a flow chart of a data updating method provided by Embodiment 3 of the present invention. This embodiment is applicable to the situation of updating data in a database cluster. The method can be executed by a data updating device, which can be realized by software and / or hardware, and the device is associated with a slave database. see Figure 4 , a data update method provided in this embodiment includes:
[0079] S310. Store the received transaction to be updated in a local disk or hard disk.
[0080] Optionally, in addition to the local disk or hard disk, it can also be stored in other local long-term storage media.
[0081] S320. If an update instruction issued by the master database is received, perform data update on the local database based on the received transaction to be updated.
[0082] Specifically, write the Relaylog according to the received transaction to be updated. Data update is performed according to the written Relaylog.
[008...
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