Database Tuning (MOSC)

MOSC Banner

Index not working in SQL statement containing IN

edited Dec 17, 2010 1:37AM in Database Tuning (MOSC) 8 commentsAnswered
We had this querry that executes every second. I tried supplying an index on delivery_date_time but it is not using. (FULL TABLE SCAN was executed)
We expect this table to grow by 3.5 million data so querry must be optimized.
Actually the expensive SQL is the inner SELECT statement.
I inserted around 2.6 million data and ran this querry.

Any hints optimizing this querry? probably which index to use?
By the way, the SQL statement is autogenerated by hibernate.

CREATE TABLE PUSH_DELIVERY_MGT (
    DELIVERY_ID                 NUMBER(20) NOT NULL,
    CUST_CON_NUM                VARCHAR2(32) NOT NULL,
    DEVICE_ID                   VARCHAR2(11) NOT NULL,

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