Representing user-defined routines with defined data structures
First Claim
Patent Images
1. A method for use in a database system having at least one processor, comprising:
- creating a user-defined routine in the database system;
selectively setting an indicator to have one of plural values;
representing a predicate expression invoking the user-defined routine with one of plural types of data structures based on the value of the indicator; and
selecting, by an optimizer executed on at least one processor in the database system, whether or not to use indexing and statistics in a query plan for a query containing the predicate expression based on determining which of the plural types of data structures is used to represent the predicate expression invoking the user-defined routine.
2 Assignments
0 Petitions
Accused Products
Abstract
A database system constructs representation for predicate expressions invoking user-defined routines. A first representation is constructed if an indicator has a first value, and a second representation is constructed if the indicator has a second value. Based on which representation is used, an optimizer in the database system selects use of indexing and/or statistics and/or other performance-enhancement features in generating a query plan.
37 Citations
35 Claims
-
1. A method for use in a database system having at least one processor, comprising:
-
creating a user-defined routine in the database system; selectively setting an indicator to have one of plural values; representing a predicate expression invoking the user-defined routine with one of plural types of data structures based on the value of the indicator; and selecting, by an optimizer executed on at least one processor in the database system, whether or not to use indexing and statistics in a query plan for a query containing the predicate expression based on determining which of the plural types of data structures is used to represent the predicate expression invoking the user-defined routine. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. An article comprising at least one machine-readable storage medium containing instructions that when executed cause at least one processor in a database system to:
-
receive a database query containing a predicate expression that invokes a user-defined routine; receive a statement that sets the indicator to one of a first value and a second value; construct a first representation of the predicate expression in response to the indicator having the first value; and construct a second, different representation of the predicate expression in response to the indicator having the second value. - View Dependent Claims (17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. A database system, comprising:
-
a storage to store an indicator; and a controller including at least one processor to receive a database query containing a predicate expression that invokes a user-defined routine, and to receive a statement to set a value of the indicator, the controller to construct a first representation of the predicate expression in response to the indicator having a first value, and the controller to construct a second representation of the predicate expression in response to the indicator having a second value. - View Dependent Claims (26, 27, 28, 29, 30, 31, 32, 33, 34, 35)
-
Specification