Database Administration (MOSC)

MOSC Banner

View Pushed Predicate - Index Usage

Hi Team,

We are using 19c database.

We need your guidance in below query. We are doing test to force view pushed predicate, We got it but the index inside the view is not used.

Have index on order_id column in LINE_ITEMS tables, why it is not used. Is it expected? If i want to force the index, how can we achieve that.

SQL>
SQL> CREATE TABLE orders (
order_id NUMBER PRIMARY KEY,
customer_id NUMBER,
order_date DATE
);
2 3 4 5
Table created.

SQL> CREATE TABLE line_items (
item_id NUMBER,
order_id NUMBER, -- Will be joined to orders

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center