Dynamic check method and device for consistency of main and salve databases
A master database and dynamic verification technology, applied in the Internet field, can solve problems such as inaccurate consistency verification results, achieve the effects of realizing processing capacity, shortening verification time, and improving verification accuracy
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] figure 2 It is a schematic diagram of a preferred structure of the device for dynamically verifying the consistency of the master-slave database according to the embodiment of the present application. Preferably, the system in this embodiment can be located on the server 102 .
[0048] The inventive concept of this preferred embodiment may mainly include: initializing the difference primary key list; performing a predetermined number of update operations on the difference primary key list; after completing the aforementioned predetermined number of update operations, if the difference primary key list is still not empty, it indicates the difference The databases of the primary and secondary databases corresponding to the primary key list are inconsistent. Wherein, the difference primary key list retains the primary key corresponding to the data that is different between the primary database and the secondary database determined after the comparison is completed.
[00...
Embodiment 2
[0087] exist Figure 2-Figure 4 On the basis of the system shown, this application provides a preferred dynamic verification method for the consistency of the master-slave database. Such as Figure 5 As shown, the method may include the following steps:
[0088] Step S502: Repeat the following steps N times, where N is a preset natural number: retrieve from the master database the database records corresponding to the primary keys in the differential primary key list to obtain the primary database record set; The database record corresponding to the primary key in the difference primary key list to obtain the secondary database record set; obtain the primary key corresponding to the database record that has a difference between the primary database record set and the secondary database record set, and list the differential primary key The primary key in is updated to the primary key corresponding to the database record with the difference;
[0089] Step S504: After executin...
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