Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Compound index vs separate indexes

PandeeshAug 26 2012 — edited Aug 27 2012
Hi,

I am having a table with 12 million records.
My query will be always having 2 conditions in WHERE clause.
 SELECT * FROM TABLE WHERE c1='some integer' and c2 in (some values)
In this case which index will be appropriate.?

a)Creating separate indexes on c1 and c2

b)creating a compound index on (c1,c2)

What are the things i need to consider before creating index in this case>

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2012
Added on Aug 26 2012
7 comments
879 views