Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Partitioning Pruning with local prefixed and non prefixed indexes

SAI RAM BNov 22 2023

Hi ,

I am creating a table A with partitioning p1 on column txn_date.

Case One:

Now i create a index on txn_date mentioning keyword LOCAL, which will be a loacl prefixed index as the index is been created on partitioned key txn_date.

And if the same key (Txn_date) is used in where clause ,the partition pruning will be used.

Case Two:

Now i create a index on other column txn_id mentioning keyword LOCAL, which will be a loacl non prefixed index as the index is created on other column which is not a partitioned key.

And if the Txn_id (Non prefixed index) is used in where clause ,it will look into the partition p1 and use it as normal index , the partition pruning is not used.

Case Three:

If the Txn_date (prefixed index) and Txn_id (Non prefixed index) is used in where clause ,it will look into the partition p1 and whether the partition pruning will be used here.?

Also please tell is my understanding correct with respect to case one and two.

This post has been answered by Barbara Boehmer on Nov 22 2023
Jump to Answer
Comments
Post Details
Added on Nov 22 2023
8 comments
658 views