SQL Performance (MOSC)

MOSC Banner

Query tuning

edited May 23, 2013 4:58AM in SQL Performance (MOSC) 12 commentsAnswered
Hi,
The below query is taking hrs to run while there are not much records. I have rebuild indexes ,analyze the schema .

SELECT *   FROM usage_events  WHERE TDATE BETWEEN '2013-02-24T00:00:00' AND '2013-02-24T23:59:59'

   and purchaseId not in (select purchaseId from purchase_events)


How can we rewrite this query for better performance.

Regards,
Naresh

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