Multi-version parallel hybrid processing method based on online aggregation
An online aggregation and mixed processing technology, applied in the database field, achieves the effect of being easy to use and improving computing efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment approach 1
[0021] Specific implementation mode one: the following combination figure 1 and figure 2 This embodiment will be specifically described. In this embodiment, a multi-version parallel hybrid processing method based on online aggregation is characterized in that it includes the following steps:
[0022] Step 1: When performing OLTP processing and OLAP query at the same time, assume that the original data table is C, and the virtual copy of the data table is C’;
[0023] Step 2: Make C' the latest version of the column in the OLTP engine, the data table C and its build version chain are logically moved to the OLAP engine and become read-only;
[0024] Step 3: Use the online aggregation method for OLAP query analysis, and use aggregation operators to provide uninterrupted feedback after analyzing SQL statements;
[0025] Step 4: While performing step 3, perform OLTP transaction processing on the virtual copy C', and directly submit the result to the virtual copy C' after execut...
Embodiment
[0033] according to figure 1 and figure 2 Specifically illustrate this embodiment, this embodiment is specifically as follows:
[0034] Step 1: table C is provided in the OLTP engine;
[0035] Step 2: Three operation requests W appear in OLTP 5 (1), W 2 (2) and W 3 (3);
[0036] Step three: W 5 (1) and W 2 (2) Commit operation, write in C, W 3 (3) The operation was suspended in the middle and was not saved to C;
[0037] Step 4: An OLAP query accesses Q1. At this time, move table C to the OLAP engine, and create a snapshot C’ in the OLTP engine. At this time, C in the OLAP engine is read-only;
[0038] Step 5: Parallel processing, OLAP operations are performed in C, while OLTP operations are performed in C';
[0039] Step 6: The OLTP operation is completed. At this time, the OLAP operation has not been completed, so continue to execute the OLAP operation;
[0040] Step 7: When a new OLAP query accesses Q2, move the table C' to the OLAP engine, and create a snapshot...
specific Embodiment approach 2
[0044] Embodiment 2: This embodiment is a further description of Embodiment 1. The difference between this embodiment and Embodiment 1 is that the method for obtaining the virtual copy C' in Step 1 is: using a custom system
[0045] vm_snapshot calls and obtains a snapshot of data table C, and generates a virtual copy C' of the data table.
[0046]In this embodiment, the custom system vm_snapshot is adopted when acquiring a virtual copy (snapshot), which significantly improves the running speed.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


