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

A distributed database cross-database association query method and system

An associative query and database technology, which is applied in the field of cross-database associative query methods and systems in distributed databases, can solve problems such as inability to implement associative queries and distributed database middleware without associative queries, and improves ease of use and execution efficiency. Effect

Active Publication Date: 2019-05-17
北京思特奇信息技术股份有限公司
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the horizontal splitting of distributed database tables brings about the problem of cross-database association queries between tables after data is distributed in different databases. Although table redundancy and table grouping can be used to avoid cross-database association queries between tables, However, there are still some business needs that cannot avoid the cross-database association query between tables through the above method, and need to perform cross-database association query between tables
However, the distributed database middleware does not really support the associated query between tables across databases, and the associated query cannot be implemented for two tables whose data is split on different database nodes.

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
  • A distributed database cross-database association query method and system
  • A distributed database cross-database association query method and system
  • A distributed database cross-database association query method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0021] Such as figure 1 As shown, a distributed database cross-database association query method includes the following steps:

[0022] S1, receiving the associated query sql of two tables across nodes;

[0023] S2, perform sql splitting according to the associated fields, and split the associated query sql into single-table queries sql1 and sql2;

[0024] S3, send sql1 to all database nodes corresponding to the table to query according to the query field list, and monitor the execution response result of sql1, wherein the query field list includes the associated fields of the two tables, and the execution response result includes the associated field value;

[0025] S4, when it is detected that the number of data...

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 relates to a cross-database associated query method and system for a distributed database. The method comprises the steps of differentially dividing a cross-database management query sql into two sqls which are sql1 and sql2 respectively, wherein query field lists of the two sqls contain associated fields; when a sql1 query result returns a preset number of rows, assembling associated field values obtained by sql1 query and sql, and performing query; and finally combining query results and returning a combined query result to a client. According to the method and system, an sql table is horizontally split, so that associated query of two tables with data distributed in different database nodes is realized and the system usability is improved; and sql2 is sent after sql1 returns a certain number of data rows, so that the problem of excessive memory occupation caused by execution of sql2 after execution of sql1 is effectively avoided and the execution efficiency is improved.

Description

technical field [0001] The invention relates to the field of distributed databases and cloud computing, in particular to a distributed database cross-database association query method and system. Background technique [0002] In many key fields such as the Internet and telecommunications, with the continuous development of enterprise business, the I / T environment of enterprises is also constantly evolving. It is difficult for a single database to meet the requirements of massive database storage and high concurrent data access. The emergence of distributed databases has become Inevitably, distributed databases can effectively solve massive data storage and concurrency problems. Through horizontal alignment of data and vertical segmentation of data tables, massive data storage is effectively alleviated, and high Concurrency issues. However, the horizontal splitting of distributed database tables brings about the problem of cross-database association queries between tables af...

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/2453G06F16/2458
CPCG06F16/2453G06F16/2471
Inventor 郝楠
Owner 北京思特奇信息技术股份有限公司