Data operation optimization method, device and system, equipment and storage medium
A technology of data operation and optimization method, which is applied in the field of database processing, and can solve problems such as the inability to guarantee the accuracy of data reading and the inability to execute SQL operation statements for read operations
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] Figure 1A It is a flow chart of a data operation optimization method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where data read-write separation is realized in any database. A data operation optimization method provided in this embodiment can be executed by the data operation optimization device provided in the embodiment of the present invention, and the device can be realized by means of software and / or hardware, and integrated in the device that executes the method In this embodiment, the device executing the method may be any smart terminal carrying a database application, such as a tablet computer, a desktop computer, or a notebook.
[0036] Specifically, refer to Figure 1A , the method may include the following steps:
[0037] S110. Determine a target SQL operation statement in a currently started database transaction.
[0038] Specifically, in order to ensure that the database can maintain data consistency...
Embodiment 2
[0046] Figure 2A It is a flow chart of a data operation optimization method provided in Embodiment 2 of the present invention, Figure 2B It is a schematic diagram of the principle of the data operation optimization process provided by Embodiment 2 of the present invention. This embodiment is optimized on the basis of the foregoing embodiments. Optionally, this embodiment mainly explains in detail the specific process of other operations that exist in the optimization of data operations.
[0047] optional, such as Figure 2A As shown, this embodiment may specifically include the following steps:
[0048] S210. Determine the target SQL operation statement in the currently started database transaction.
[0049] S220, distributing the first SQL operation statement before the target SQL operation statement to the backup database, and distributing the target SQL operation statement and the second SQL operation statement after the target SQL operation statement to the primary d...
Embodiment 3
[0064] image 3 A schematic structural diagram of a device for optimizing data operations provided by Embodiment 3 of the present invention, as shown in image 3 As shown, the device may include:
[0065] The target statement determination module 310 is used to determine the target SQL operation statement in the currently started database transaction, and the target SQL operation statement is the SQL operation statement corresponding to the first write operation in the database transaction;
[0066] The statement distribution module 320 is used for distributing the first SQL operation statement before the target SQL operation statement to the backup database, and distributing the target SQL operation statement and the second SQL operation statement after the target SQL operation statement to the main database, so that the backup database The first SQL operation statement is executed, and the main database executes the target SQL operation statement and the second SQL operatio...
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