SQL Performance (MOSC)

MOSC Banner

Query in DW dont use index

edited Feb 26, 2015 10:01AM in SQL Performance (MOSC) 3 commentsAnswered

Hi,

11.2.0.2

I have a query in our datawarehouse that dont uses indexes and takes for ever to complete. I have gathered stats on the MFT_SALE_MRKT (129 million rows).
MDV=view, MDT=table

I have the query below, when I dont filer on country (when this row is not being used, commented out: AND ( MDV_LOC_MRKT.MRKT_DSPL_NAME )= '01 SWEDEN' -- or ('All' IN ('01 SWEDEN'))  ) then the optimizer uses the indexes
on table MFT_SALE_MRKT. But when I filter on country the optimizer uses a full table scan.

What can I do to make the optimizer use the indexes that are avilable?

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