SQL Performance (MOSC)

MOSC Banner

Indexes not used in Order by Clause

edited Jul 2, 2014 5:00AM in SQL Performance (MOSC) 4 commentsAnswered

11g Standard Edition, Amazon RDS cloud

Hi,

The below query is not using index if i included order by clause.I have added a composite index for site_id, role_id and name. but still it is not using the index. Any suggestion is highly appreciated.

select  * from user  where site_id = 35840 and role_id=2  order by name ASC;



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