Method and device for synchronizing database
A database and master database technology, applied in the database field, can solve problems such as large delays in database synchronization operations and aggravate database server operating loads, and achieve the effect of reducing operation delays and operating loads
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] This embodiment provides a technical solution of a database synchronization method. The database synchronization method is implemented by a database synchronization device. The database synchronization device is integrated in a database proxy server, and the database proxy server is usually deployed between the client used by the user and the database server, and is connected to the client and the database server respectively for Performs a synchronization operation on the database on the database server.
[0026] see figure 1 , the database synchronization method includes: step 11 to step 14.
[0027] In step 11, the user instruction input by the user is read.
[0028] The user will send user instructions to the main database through the client connected to the database agent. The user commands include read commands and write commands. The read instruction refers to a user instruction that only reads the data stored in the database without changing the stored cont...
Embodiment 2
[0041] This embodiment further provides another technical solution of the database synchronization method based on the foregoing embodiments of the present invention. In this technical solution, before sending the user instruction to the main database for execution, it also includes: judging whether the user instruction is a read instruction or a write instruction; if the user instruction is a write instruction, sending the user instruction Give backup database.
[0042] see figure 2 , in this embodiment, the database synchronization method includes: Step 21 to Step 26.
[0043] In step 21, user instructions input by the user are read.
[0044] In step 22, it is judged whether the user instruction is a read instruction or a write instruction.
[0045] In this embodiment, the database agent is not only connected to the main database through the network, but also connected to a backup database through the network. The backup database is used to back up the data stored in th...
Embodiment 3
[0055] Based on the foregoing embodiments of the present invention, this embodiment further provides another technical solution of a database synchronization method. In this technical solution, after sending the user instruction to the backup database, it further includes: reading the backup result returned by the backup database after executing the user instruction; and forwarding the backup return result to the user.
[0056] see image 3 , in this embodiment, the database synchronization method includes: Step 31 to Step 38.
[0057] In step 31, user instructions input by the user are read.
[0058] In step 32, it is judged whether the user instruction is a read instruction or a write instruction.
[0059] In step 33, if the user instruction is a write instruction, send the user instruction to the backup database.
[0060] In step 34, the result returned by the backup after the backup database executes the user instruction is read.
[0061] After the backup database exec...
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