A method and device for quickly comparing data based on database b-tree
A technology for comparing data and databases, applied in the field of data processing, can solve problems such as low query efficiency and large memory consumption, and achieve the effects of saving memory space, less memory usage, and high speed
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0058] The first embodiment provides a method for quickly comparing data based on a database B-tree, such as figure 1 shown, methods include:
[0059] In step 101, start the comparison database, configure the comparison relationship between the source tables of the comparison data in the comparison database, divide the comparison table into a first table structure and a second table structure according to the data source, in the comparison database A table T with a clustered primary key is created, and the structure of the table T is divided into a first table T and a second table T according to whether there is a primary key in the first table structure and the second table structure.
[0060] A clustered index sorts and stores data in a table based on the key values of data rows. There can only be one clustered index in each table structure, because data rows can only be stored in a unique order. There are many index columns in the index. The clustered primary key select...
Embodiment 2
[0076] The second embodiment of the present invention describes the implementation process of the first embodiment of the present invention from a relatively complete method step process. Compared with the first embodiment, the process performance of the embodiment of the present invention is more complete and more instantiated.
[0077] like figure 2 As shown, in step 101, start the comparison database, configure the comparison relationship between each source table of the comparison data in the comparison database, and divide the comparison table into a first table structure and a second table structure according to the data source, if the first table structure Both the table structure and the second table structure have primary keys, and a first table T with a clustered primary key is created in the comparison database. Combined with the embodiment of the present invention, there is also a preferred implementation scheme. Specifically, the first table T The structure of a ...
Embodiment 3
[0132] Embodiment 3 of the present invention illustrates the implementation process of Embodiment 1 of the present invention from a relatively complete method and step process. Compared with Embodiment 1, the process performance of this embodiment of the present invention is more complete and more instantiated. like image 3 As shown, the third embodiment of the present invention and the second embodiment of the present invention use different comparison schemes.
[0133] In step 101, start the comparison database, configure the comparison relationship between each source table of the comparison data in the comparison database, and divide the comparison table into a first table structure and a second table structure according to the data source. The structure and the second table structure do not have a primary key, and a second table T with a clustered primary key is created in the comparison database. Combined with the embodiment of the present invention, there is also a pre...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


