Multi-index database transaction processing method and database
A transaction processing and database technology, applied in the computer field, can solve problems such as low efficiency and achieve the effect of ensuring ACID characteristics
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] A multi-index database transaction processing method, its flow chart can refer to figure 1 As shown, the database includes at least one row of data, and the multi-index points to at least one column of data in the row of data. The first embodiment focuses on database write transaction processing, that is, the transaction of adding, deleting, and modifying data in the database. Depend on figure 1 Visible, described method comprises:
[0059] Step 101, generating a globally ordered latest transaction version number;
[0060] In this embodiment, two types of indexes are set in the database, namely sequential index and hash index. However, in practical applications, other types of indexes may be established for related fields according to actual query requirements.
[0061] In order to ensure the ACID characteristics of data and multiple index update transactions: each write transaction may modify multiple columns of multiple rows of multiple tables, all these modificati...
Embodiment 2
[0071] This embodiment provides a multi-index database transaction processing method, its flow chart can refer to figure 2 As shown, the database includes at least one row of data, and the multi-index points to at least one column of data in the row of data. The first embodiment focuses on database write transaction processing, that is, the transaction of adding, deleting, and modifying data in the database. Depend on figure 2 Visible, described method comprises:
[0072] Step 201, generating a globally ordered latest transaction version number;
[0073] This step 201 is the same as the step 101 in the foregoing embodiment, so details are not repeated here.
[0074] Step 202, using the latest transaction version number as a mark, perform write transaction processing on the database, and update multiple indexes corresponding to the data in the database after the write transaction processing;
[0075] Specifically, in this step 202, during the process of writing transactio...
Embodiment 3
[0086] This embodiment provides a multi-index database transaction processing method, its flow chart can refer to image 3 As shown, the database includes at least one row of data, and the multi-index points to at least one column of data in the row of data. The first embodiment focuses on database write transaction processing, that is, the transaction of adding, deleting, and modifying data in the database. Depend on image 3 Visible, described method comprises:
[0087] Step 301, generating a globally ordered latest transaction version number;
[0088] This step 301 is the same as step 101 and step 201 in the foregoing embodiments, so details are not repeated here.
[0089] Step 302, using the latest transaction version number as a mark, perform write transaction processing on the database, and update multiple indexes corresponding to the data in the database after the write transaction processing;
[0090] In this step, it is necessary to modify a single database with m...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


