DATABASE PROCESSING SYSTEM AND METHOD
First Claim
1. A database processing system, comprising:
- a computer which outputs all query results in response to query requests received from outside; and
a storage system which stores data to be output in accordance with the query requests,wherein the computer comprises a first interface, which is coupled to the storage system, a processor, which is coupled to the first interface, and a memory, which is coupled to the processor,wherein the storage system comprises a second interface, which is coupled to the computer, a control unit, which is coupled to the second interface, and storage, which is coupled to the control unit,wherein the storage stores the data and storage location information in which storage locations of the data are recorded in a given order,wherein the computer is configured to;
receive query requests for outputting query results in an order of values recorded in the storage location information;
store order relations of the values recorded in the storage location information in association with a plurality of data input requests for fetching the data in accordance with the query requests; and
send the plurality of data input requests to the storage system,wherein the storage system is configured to send data that is fetched in accordance with the each of the plurality of received data input requests to the computer for each of the plurality of data input requests received from the computer, andwherein the computer is configured to;
determine, before all of the plurality of data input requests sent are fulfilled, from the order relations whether or not a query result to be output next is found in already fetched partial data, which is only part of the pieces of data to be fetched by the storage system; and
start, in the case where the data to be output next is found, outputting the query result.
1 Assignment
0 Petitions
Accused Products
Abstract
Provided is a database system in which sorting of query results is sped up. The database system stores storage location information in which storage locations of the pieces of data are recorded in a given order. When there is no second task, which is executed based on data that is fetched in a first task, whether every piece of data requested in a third task, which is executed before the first task, has been fetched is determined. In the case where every piece of data requested in the third task has been fetched, data fetched in the first task is output. In the case where some of the data requested in the third task has not been fetched, data fetched in the first task is kept in a temporary buffer until every piece of data requested in the third task is fetched, and then output.
50 Citations
15 Claims
-
1. A database processing system, comprising:
- a computer which outputs all query results in response to query requests received from outside; and
a storage system which stores data to be output in accordance with the query requests,wherein the computer comprises a first interface, which is coupled to the storage system, a processor, which is coupled to the first interface, and a memory, which is coupled to the processor, wherein the storage system comprises a second interface, which is coupled to the computer, a control unit, which is coupled to the second interface, and storage, which is coupled to the control unit, wherein the storage stores the data and storage location information in which storage locations of the data are recorded in a given order, wherein the computer is configured to; receive query requests for outputting query results in an order of values recorded in the storage location information; store order relations of the values recorded in the storage location information in association with a plurality of data input requests for fetching the data in accordance with the query requests; and send the plurality of data input requests to the storage system, wherein the storage system is configured to send data that is fetched in accordance with the each of the plurality of received data input requests to the computer for each of the plurality of data input requests received from the computer, and wherein the computer is configured to; determine, before all of the plurality of data input requests sent are fulfilled, from the order relations whether or not a query result to be output next is found in already fetched partial data, which is only part of the pieces of data to be fetched by the storage system; and start, in the case where the data to be output next is found, outputting the query result. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
- a computer which outputs all query results in response to query requests received from outside; and
-
11. A computer which outputs all query results in response to query requests received from outside, the computer comprising:
-
a first interface coupled via a network to a storage system which stores data to be output in accordance with the query requests; a processor coupled to the first interface; and a memory coupled to the processor, wherein the storage system comprises a second interface, which is coupled to the computer, a control unit, which is coupled to the second interface, and storage, which is coupled to the control unit, wherein the storage stores the data and storage location information in which storage locations of the data are recorded in a given order, wherein the processor is configured to; receive query requests for outputting query results in an order of values recorded in the storage location information; store order relations of the values recorded in the storage location information in association with a plurality of data input requests for fetching the data in accordance with the query requests; send the plurality of data input requests to the storage system via the first interface; receive, from the storage system via the first interface, data that is fetched from among the data stored in the storage system in accordance with each of the plurality of data input requests which are received from the computer; determine, before all of the plurality of data input requests sent are fulfilled, from the order relations whether or not a query result to be output next is found in already fetched partial data, which is only part of the pieces of data to be fetched by the storage system; and start, in the case where the data to be output next is found, outputting the query result. - View Dependent Claims (12, 13, 14)
-
-
15. A database processing method for a system having a computer, which outputs all query results in response to query requests received from outside, and a storage system, which stores data to be output in accordance with the query requests, the database processing method including the steps of:
-
receiving, by the computer, query requests for outputting query results in an order of values recorded in storage location information in which storage locations of the data are recorded in a given order; keeping, by the computer, order relations of the values recorded in the storage location information in association with a plurality of data input requests for fetching the data in accordance with the query requests; sending, by the computer, the plurality of data input requests to the storage system; sending, by the storage system, for each of the plurality of data input requests received from the computer, data that is fetched in accordance with the received plurality of data input request to the computer; determining, by the computer, before all of the plurality of data input requests sent are fulfilled, from the order relations whether or not a query result to be output next is found in already fetched partial data, which is only part of the pieces of data to be fetched by the storage system; and starting, by the computer, in the case where the data to be output next is found, outputting the query result.
-
Specification