Unlock instant, AI-driven research and patent intelligence for your innovation.

Database verification method and device

A verification method and database technology, applied in the direction of electrical digital data processing, instrumentation, error detection/correction, etc., can solve the problems that the verification personnel cannot confirm the operation results, cannot be realized, and the efficiency of the target database verification is low, and achieve The effect of improving the verification efficiency

Active Publication Date: 2021-03-19
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, with the continuous expansion of database functions, the number of sample SQLs that need to be used is increasing. Therefore, in the prior art, checkers need to manually check a large number of SQLs, and the efficiency of checking the target database is low.
At the same time, when the amount of data in the target database is relatively large, the running result of a sample SQL may have multiple rows. The result of the operation, the above scheme will not be realized

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Database verification method and device
  • Database verification method and device
  • Database verification method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0029] In order to ensure the reliability of the target database after the secondary development of the Pgxc database, the verification personnel need to verify the target database. In each of the following embodiments, the scheduling system can first convert the target database to obtain the benchmark database corresponding to the target database, run the sample SQL in the target database and the benchmark database, and then compare the first running result in the target database and the As for the second running result in the benchmark database, when the comparison result is consistent with the two, it is determined that the verification of the target database is successful. Wherein, the target database and the reference database may...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a database check method and apparatus, and belongs to the technical field of the internet. The method comprises the steps of converting a target database to obtain a benchmarkdatabase supported by a relational database management system MySQL; running a sample structured query language (SQL) in the target database to obtain a first running result, and running the sample SQL in the benchmark database to obtain a second running result; copying the first running result to the benchmark database; detecting whether the first running result and the second running result areconsistent or not in the benchmark database; and if a detection result is that the first running result and the second running result are consistent, determining that the check of the target databasesucceeds. The problem of relatively low check efficiency of the target database when relatively numerous sample SQLs exist in the prior art is solved; and the effects of quickly determining a check result of the sample SQL in the benchmark database and improving the check efficiency of the target database are achieved.

Description

technical field [0001] The embodiment of the present invention relates to the technical field of databases, in particular to a method and device for verifying a database. Background technique [0002] In the prior art, secondary development of the Pgxc (an open source distributed database system) database is required due to business requirements, and in order to ensure the reliability of the target database after secondary development, the target database needs to be verified. [0003] The existing database verification method includes: the server runs sample SQL in the target database, and detects whether the running result is consistent with the pre-stored running result; if the detection result is consistent, it is determined that the verification of the target database is successful. Wherein, the pre-stored operation result refers to the operation result of the sample SQL manually verified by the verification personnel and then stored to the server. [0004] However, wi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3688G06F11/3692
Inventor 刘威王德宝
Owner TENCENT TECH (SHENZHEN) CO LTD