Distribution method and device for WAL records of distributed database
A distribution device and database technology, applied in the computer field, can solve the problems of unreasonable distribution of WAL records and low processing performance of distributed databases, and achieve the effect of improving processing performance and reasonable distribution
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0073] figure 2 It is a schematic flow diagram of Embodiment 1 of the WAL record distribution method of the distributed database of the present application, such as figure 2 As shown, the method of the present embodiment includes:
[0074] S201: Determine the WAL record of the transaction corresponding to each sub-database according to the correlation between the operation data involved in the WAL record of each transaction.
[0075] The correlation between the operation data means that the operation data involved in the WAL records of the transactions has the same operation data, then it is considered that there is a correlation between the operation data involved in the WAL records of these transactions.
[0076] Through the correlation between the operation data involved in the WAL record of each transaction, the WAL record of the transaction corresponding to each sub-database can be determined. If the WAL of any transaction in the WAL record of the transaction correspon...
Embodiment 2
[0082] Embodiment 2 On the basis of the embodiment shown in Embodiment 1, a description of a possible implementation of S201, combined with Table 1, Table 1 is the same batch of transactions in Embodiment 1 of the present application, shown in Table 1 There are 8 transactions, and the transactions are identified by transaction IDs, which are 1, 2, 3, 4, 5, 6, 7, and 8; taking 4 sub-databases as an example, they are sub-database A, sub-database B, and sub-database C and sub-database D, Table 1 only shows the operation data involved in the WAL record of each transaction, where the operation data is identified by the table number and the primary key, for example: the operation data involved in the WAL record of transaction 1 is Table B1, PK 10 / 15, where Table B1 represents the table number, PK 10 / 15 represents the primary key is 10 and 15, therefore, the operation data involved in the WAL record of transaction 1 corresponds to the primary key 10 and 15 in Table B1 The operation d...
Embodiment 3
[0108] Embodiment 3 is based on the embodiment shown in Embodiment 2, and describes a possible implementation of establishing a dependency tree, as shown in image 3 as shown, image 3 A schematic flow diagram of an embodiment of establishing a dependency tree for this application, such as image 3 As shown, the method of this embodiment is as follows:
[0109] Each transaction corresponds to a node, and the target nodes are traversed in accordance with the execution order of the corresponding transactions. For each target node, the source nodes are traversed in sequence according to the execution order of the corresponding transactions.
[0110] S301: Determine whether the transaction ID corresponding to the target node is greater than or equal to the transaction ID corresponding to the source node, if yes, perform S305, and if not, perform S302.
[0111] S302: Determine whether the transaction corresponding to the target node has the same operation data as the transaction ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



