Method and device for synchronously updating data in batches in database
A synchronous update and database technology, applied in the database field, can solve the problems of different update columns, unable to bind data row data synchronization in batches, etc., and achieve the effect of reducing synchronization delay
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] In the database operation, the SQL statement corresponding to the UPD operation of the database is an update statement, and each time the statement is executed, one or more rows of data in the database that meet the execution conditions will be changed. When performing database synchronization, if the UPD operation is performed in the source database, the same data update needs to be performed on one or more rows of data that meet the same execution conditions in the destination database to ensure that the data in the destination database is consistent with the source database. When database operations are submitted, not every operation is executed immediately to avoid data conflicts, or due to other database scheduling reasons, which causes synchronization delays. In order to avoid synchronization delay, you can bind the parameters of multiple update statements in one UPD operation by batch-binding data rows, and update multiple rows of data through the execution of one...
Embodiment 2
[0050] In the specific implementation scenario of this embodiment, the specific steps provided in this embodiment can be used to complete step 101 to step 105 provided in embodiment 1, so as to realize the merging of source update operations.
[0051] In a specific implementation scenario, database table t1 is included. Table 1 below shows the data before t1 is updated. The first column in Table 1 is the row number of the data row, and the second to sixth columns are the column values of the column names c1, c2, c3, c4, and c5 respectively.
[0052] 102 1 2 3 4 A 103 1 2 3 4 A 104 1 2 3 4 A
[0053] Table 1
[0054] Between two database synchronizations, the source database sequentially performs the following three consecutive update operations on table t1. In a specific implementation scenario, the following three operations can be divided into one transaction for processing, so as to improve processing efficiency by using transaction-rel...
Embodiment 3
[0128] On the basis of the method for batch synchronous update of data in the database provided by the above-mentioned embodiment 1 to embodiment 2, the present invention also provides a device that can be used to realize the batch synchronous update of data in the database of the above method, such as Figure 5 Shown is a schematic diagram of the device architecture of the embodiment of the present invention. The apparatus for synchronously updating data in batches in a database in this embodiment includes one or more processors 21 and memory 22 . in, Figure 5 A processor 21 is taken as an example.
[0129] Processor 21 and memory 22 can be connected by bus or other means, Figure 5 Take connection via bus as an example.
[0130]The memory 22 is a non-volatile computer-readable storage medium used as a batch synchronous update method for data in the database, and can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, su...
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