Method for solving correlated query of distributed cross-database fragment table

A technology of associative query and sharded table, applied in the field of network communication to improve query efficiency

Inactive Publication Date: 2016-03-16
GOSUNCN TECH GRP
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to solve the defects of the existing technology, provide a method that does not waste additional data storage space, does not cause too much impact on the system performance of each sub-node, and also ensures that the entire distributed cluster can have more efficient table association Query performance The method for solving the associated query of distributed cross-database sharding tables adopts the following technical solutions:

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
  • Method for solving correlated query of distributed cross-database fragment table
  • Method for solving correlated query of distributed cross-database fragment table
  • Method for solving correlated query of distributed cross-database fragment table

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0023] Embodiment: A method for solving the associated query of distributed cross-database sharded tables, including:

[0024] Construct the relationship between the CUSTOMERS fragmented table and the ORDERS fragmented table: specify the table name of the CUSTOMERS fragmented table, all nodes distributed, fragment fields and fragmentation rules; at the same time specify the table name and foreign key of the ORDERS fragmented table The column name and the column name of the column of the table referenced by the foreign key;

[0025] Make the warehousing operation of the CUSTOMERS shard table a normal warehousing operation, and the warehousing operation of the ORDERS shard table needs to perform the warehousing operation according to the node where the associated CUSTOMERS shard table data is located, where the CUSTOMERS shard table is Regular sharded tables, ORDERS sharded tables and sharded tables that need to be associated with regular sharded tables.

[0026] In this embodiment, a...

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 method for solving the correlated query of a distributed cross-database fragment table. The method comprises the following steps: constructing a correlated relationship between a CUSTOMERS fragment table and an ORDERS fragment table; appointing the table name, all distributed nodes, the fragment field and the fragment rule of the CUSTOMERS fragment table; meanwhile, appointing the table name, the foreign key listing and the listing of a list quoted by a foreign key of the ORDERS fragment table; and causing a storage operation of the CUSTOMERS fragment table to be the normal storage operation, and causing the storage operation of the ORDERS fragment table to be executed according to a node where associated CUSTOMERS fragment table data is positioned, wherein the CUSTOMERS fragment table is a conventional fragment table, and the CUSTOMERS fragment table needs to be associated with the conventional fragment table.

Description

Technical field [0001] The invention relates to the technical field of network communication, and in particular to a method for solving distributed cross-database sharding table association queries. Background technique [0002] 1. The current solution to the solution of distributed cross-database sharding table association is to use data redundancy to redundantly all the associated table data to all node databases, so as to solve distributed middle-span database sharding The problem of associative query. Such as figure 1 Shown: If the data of the CUSTOMERS sharded table is distributed in two databases dn1 and dn2, and the CUSTOMERS sharded table needs to be associated with the ORDERS sharded table, then all the data of the ORDERS sharded table is stored in those two In the database (dn1, dn2), the ORDERS sharded table is called the global table at this time, and the data of the ORDERS sharded table must be consistent on all child nodes in the distributed environment. Although ...

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 Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/2282G06F16/24553G06F16/24554G06F16/2471
Inventor 陈建欣黎建驹冯亮李文杰劳定雄刘双广
Owner GOSUNCN TECH GRP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products