DATABASE QUERY IN A SHARE-NOTHING DATABASE ARCHITECTURE
First Claim
1. A method for data query in a share-nothing database, comprising:
- obtaining, by a computer processor, a query request and generating an optimized access plan with respect to the query request, wherein the query request relates to external data stored in an external data source, and the query request further contains a definition for expected distribution of the external data;
obtaining data distribution information related to the expected distribution of the external data based on the optimized access plan;
transmitting the data distribution information to the external data source so that the external data source splits the external data in accordance with the data distribution information and returns the split external data in parallel; and
executing query-related processing on the split external data in accordance with the optimized access plan.
1 Assignment
0 Petitions
Accused Products
Abstract
Data query in a share-nothing database includes obtaining a query request and generating an optimized access plan with respect to the query request. The query request relates to external data stored in an external data source and contains a definition for expected distribution of the external data. The data query also includes obtaining data distribution information related to the expected distribution based on the optimized access plan, transmitting the data distribution information to the external data source so that the external data source splits and returns the external data in accordance with the data distribution information, and executing query-related processing of the split external data in accordance with the optimized access plan.
-
Citations
16 Claims
-
1. A method for data query in a share-nothing database, comprising:
-
obtaining, by a computer processor, a query request and generating an optimized access plan with respect to the query request, wherein the query request relates to external data stored in an external data source, and the query request further contains a definition for expected distribution of the external data; obtaining data distribution information related to the expected distribution of the external data based on the optimized access plan; transmitting the data distribution information to the external data source so that the external data source splits the external data in accordance with the data distribution information and returns the split external data in parallel; and executing query-related processing on the split external data in accordance with the optimized access plan. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An apparatus for data query in a share-nothing database, comprising:
-
an access plan generation unit configured to obtain a query request and generate an optimized access plan with respect to the query request, wherein the query request relates to external data stored in an external data source, and the query request further contains a definition for expected distribution of the external data; a data distribution information obtaining unit configured to obtain data distribution information related to the expected distribution of the external data based on the optimized access plan; a data distribution information transmission unit configured to transmit the data distribution information to the external data source so that the external data source splits the external data in accordance with the data distribution information and returns the split external data in parallel; and a query processing execution unit configured to execute query-related processing on the split external data in accordance with the optimized access plan. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
Specification