Systems And Methods For Performing Index Joins Using Auto Generative Queries
First Claim
1. A method for performing index joins, comprising:
- receiving, at a query processor in a database management system, an instruction to perform an index join operation between columns in a first table and a second table, wherein the query processor does not have direct access to an index of the first table or the second table for performing the index join operation;
automatically generating a query having a where clause equality expression that equates an indexed column of the second table with a parameter or updatable constant;
substituting a value from a row of the first table for the parameter or updatable constant;
executing the query on the index of the second table to fetch any one or more rows of the second table that satisfy the where clause by having an index value that matches the substituted value;
repeating the substituting and executing steps for each row of the first table; and
performing the index join operation using the fetched one or more rows.
1 Assignment
0 Petitions
Accused Products
Abstract
In accordance with the teachings described herein, systems and methods are provided for performing index joins. A database management application may receive an instruction to perform an index join operation between columns in a first table and a second table, wherein the database management application does not have direct access to an index of the first table or the second table for performing the index join operation. A query may be automatically generated by the database management application, wherein the query includes a where clause equality expression that equates an indexed column of the second table with a parameter or updatable constant. The database management application may substitute a value from a row of the first table may for the parameter or updatable constant, and cause the query to be executed on the index of the second table to fetch any one or more rows of the second table that satisfy the where clause by having an index value that matches the substituted value. The database management application may then repeat the substituting and executing operations for each row of the first table, and perform the index join operation using the fetched one or more rows.
15 Citations
17 Claims
-
1. A method for performing index joins, comprising:
-
receiving, at a query processor in a database management system, an instruction to perform an index join operation between columns in a first table and a second table, wherein the query processor does not have direct access to an index of the first table or the second table for performing the index join operation; automatically generating a query having a where clause equality expression that equates an indexed column of the second table with a parameter or updatable constant; substituting a value from a row of the first table for the parameter or updatable constant; executing the query on the index of the second table to fetch any one or more rows of the second table that satisfy the where clause by having an index value that matches the substituted value; repeating the substituting and executing steps for each row of the first table; and performing the index join operation using the fetched one or more rows. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A system for performing index joins, comprising:
a database management application stored in a memory and executed by a processor, when executed the database management application being configured to; receive an instruction to perform an index join operation between columns in a first table and a second table, wherein the database management application does not have direct access to an index of the first table or the second table for performing the index join operation; automatically generate a query having a where clause equality expression that equates an indexed column of the second table with a parameter or updatable constant; substitute a value from a row of the first table for the parameter or updatable constant; cause the query to be executed on the index of the second table to fetch any one or more rows of the second table that satisfy the where clause by having an index value that matches the substituted value; repeat the substituting and executing operations for each row of the first table; and perform the index join operation using the fetched one or more rows. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
Specification