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

Optimization method, device, equipment and storage medium for remote database objects

An optimization method and database technology, applied in the database field, can solve problems such as slow execution, high requirements, and inability to optimize, so as to reduce requirements, optimize network data transmission volume, and increase the effect of optimizing scenarios

Active Publication Date: 2021-06-01
SHANGHAI DAMENG DATABASE
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The above optimization methods effectively improve the execution efficiency of DBLINK, but the requirements for the original SQL are too high. Once the SQL or sub-SQL involves both remote database objects and local database objects, or involves multiple different remote database objects at the same time, it cannot be optimized.
Among them, DBLINK optimization method 3), it is also necessary to know the data volume of remote database objects and local database objects before adding HINT, otherwise it may lead to slower execution

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
  • Optimization method, device, equipment and storage medium for remote database objects
  • Optimization method, device, equipment and storage medium for remote database objects
  • Optimization method, device, equipment and storage medium for remote database objects

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] figure 1 It is a schematic flowchart of a method for optimizing a remote database object provided by Embodiment 1 of the present invention. This embodiment is applicable to the SQL statement to be optimized involving both remote database objects and local database objects, or involving objects of multiple different remote databases at the same time In the case of optimization, the method can be executed by the remote database object optimization device in the embodiment of the present invention. The device can be implemented by hardware and / or software, and is generally integrated on the remote database object optimization device.

[0034] It can be understood that the optimization scheme for DBLINK in the prior art is not suitable for the situation that a SQL or sub-SQL statement involves both remote database objects and local database objects, or involves multiple objects of different remote databases at the same time. The reason is that the prior art scheme optimizes...

Embodiment 2

[0071] figure 2 It is a schematic flowchart of a remote database object optimization method provided by Embodiment 2 of the present invention. This embodiment is further optimized on the basis of Embodiment 1. In this embodiment, the database object corresponding to the first object query is optimized according to the first optimization rule, so as to optimize the network data transmission volume of the remote database node, which is embodied as: obtaining from the second target syntax item The first filter condition associated with the single remote database object; if the first filter condition is a Boolean expression connected with AND, then the first filter condition only includes the single remote database object The Boolean expression is removed and connected with "AND" to obtain a second filter condition; the second filter condition is sent together with the single remote database object to the first remote database node corresponding to the single remote database obje...

Embodiment 3

[0131] This embodiment is applicable to the situation that the SQL statement to be optimized involves the remote database object and the local database object, or when it involves objects of multiple different remote databases, the optimization is performed. In this embodiment, an actual DBLINK is created, and the SQL statement is executed as The examples illustrate the optimization methods corresponding to the three object query types in the foregoing embodiments.

[0132] Create a DBLINK locally, connect to the data source named "DM8" through ODBC, and specify the login user name SYSDBA and password SYSDBA:

[0133] CREATE LINK LNK01 CONNECT 'ODBC' WITH SYSDBA IDENTIFIED BY SYSDBA USING 'DM8';

[0134] Create table object T2 locally:

[0135] CREATE TABLE T2(D1INT,D2INT);

[0136] There are remote data objects T1, T3:

[0137] CREATE TABLE T1(C1INT,C2INT);

[0138] CREATE TABLE T3(E1INT,E2INT).

[0139] (1) The first object query - a single object query, that is, the FR...

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 embodiment of the present invention discloses a remote database object optimization method, device, device, and storage medium. The method includes: determining the remote database object contained in the current SQL statement to be optimized and the corresponding object query type; if the object query type is the first object query, then optimize the remote database object corresponding to the first object query according to the first optimization rule, so as to optimize the network data transmission volume of the remote database node; if the object query type is the second object query, Then optimize the remote database object corresponding to the second object query according to the second optimization rule, so as to optimize the network data transmission volume of the remote database node. The embodiment of the present invention recursively optimizes the remote database objects in all components of the SQL statement by using a single remote database object as the optimization unit, which reduces the remote database object optimization requirements for SQL statements to be optimized, and increases the optimization of remote database objects Scenes.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of databases, and in particular, to a method, device, device and storage medium for optimizing remote database objects. Background technique [0002] Database link (DataBase Link) is referred to as DBLINK for short, it records the connection and path information of the remote database, and is used to establish the connection between the local database and the remote database. When accessing a remote database through DBLINK, if the transmission volume of the remote data network is too large, it will seriously affect the execution efficiency of Structured Query Language (SQL) in the local database. Therefore, it is necessary to optimize the execution process of the local database, mainly from the following two aspects: 1) reduce the number of visits to the same remote database; 2) reduce the amount of data returned from the remote database to the local. [0003] The existing remote d...

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): G06F16/242G06F16/2453G06F16/2455
CPCG06F16/2433G06F16/2453G06F16/2456
Inventor 望声宜朱仲颖韩朱忠
Owner SHANGHAI DAMENG DATABASE