Join operation processing system in relational model
First Claim
1. A join operation processing system responsive to user instructions for performing join operations in a relational model in a data processing system where a data base storing a plurality of data tables, each data table comprising a plurality of information fields with a plurality of data entries within each field, further storing pertinent index tables arranged such that entries in each index table are in an ascending or descending sequence, the entries in the index table corresponding to the data entries in an information field in one or plurality of said data tables and storing dictionary information for each table defining the information fields, and processings are executed by providing a data base processing mechanism and using said tables of said data base, said data base processing mechanism at least comprising:
- maximum/minimum calculation execution means for preliminarily judging a tuple extraction range for a join field in a join object table based on a join predicate described by users and the dictionary information for the index table which can be utilized for said join processing;
reduction sort execution means for sorting one of unsorted tables or one of the tables which cannot use the index tables based on the preliminary judged tuple extraction range and for executing the sorting for a succeeding table based on the extraction range limited by the sorting by said reduction sort execution means; and
join calculation execution means for executing join processing by extracting the join object tuple for the join object table based on the extraction range for the index table for the table which can use the index and the extraction range of the table sorted by said reduction sort execution means, whereby the processing instructed by users is executed on the basis of the limited relationship defined by the join object table.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention discloses a join operation processing system in a relational model where a data base processing mechanism provides at least maximum/minimum calculation execution means, reduction sort execution means and the join operation execution means.
During the join operation for generating a new table linking tuples of a plurality of pertinent tables based on a common field or plurality of common fields, a minimum extraction range for determining the tuples to be processed is determined with respect to the join field or the plurality of join fields for each table which is considered as the object of the join. The operation rate is thereby improved by omitting the processing referring to unwanted data.
-
Citations
6 Claims
-
1. A join operation processing system responsive to user instructions for performing join operations in a relational model in a data processing system where a data base storing a plurality of data tables, each data table comprising a plurality of information fields with a plurality of data entries within each field, further storing pertinent index tables arranged such that entries in each index table are in an ascending or descending sequence, the entries in the index table corresponding to the data entries in an information field in one or plurality of said data tables and storing dictionary information for each table defining the information fields, and processings are executed by providing a data base processing mechanism and using said tables of said data base, said data base processing mechanism at least comprising:
-
maximum/minimum calculation execution means for preliminarily judging a tuple extraction range for a join field in a join object table based on a join predicate described by users and the dictionary information for the index table which can be utilized for said join processing; reduction sort execution means for sorting one of unsorted tables or one of the tables which cannot use the index tables based on the preliminary judged tuple extraction range and for executing the sorting for a succeeding table based on the extraction range limited by the sorting by said reduction sort execution means; and join calculation execution means for executing join processing by extracting the join object tuple for the join object table based on the extraction range for the index table for the table which can use the index and the extraction range of the table sorted by said reduction sort execution means, whereby the processing instructed by users is executed on the basis of the limited relationship defined by the join object table.
-
-
2. A method of join operation processing for first and second tables using a processing unit and a memory and responsive to user instructions where the user specifies a desired range and where an index table and index table range are provided for the second table, comprising the steps of:
-
(a) determining an extraction range for tuple extractions, comprising the steps of; (i) inputting the desired range; (ii) inputting the index table range; and (iii) determining, as the extraction range, a common range between the index table range and the desired range; (b) performing a reduction sort on the first table using the determined extraction range; and (c) performing a join operation based on the reduction sorted table with the second table. - View Dependent Claims (3, 4, 5, 6)
-
Specification