Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Anyway to optimize the optimizer
Hi Waleed,
I use in this case an additional predicate on partition key:
partition_key >= function(value_of_c2)
to cover the missing half of the pruning.
The function calculates the minimal possible value of the partition_key based on the value of the c2 column (in this case: c2 - 10).
This solution is not very user friendly, but at least encapsulates the "business logic" (subtract of 10) in the function.
Any more sophisticated solution will be highly appreciated,
Jaromir
I'm trying to achieve partition pruning when accessing a table using a column other than the partition key.
-- http://www.freelists.org/webpage/oracle-lReceived on Wed Mar 02 2005 - 19:44:28 CST