MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tuning indexes

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Meena
Beginner


Joined: 03 Aug 2004
Posts: 20
Topics: 15

PostPosted: Tue Aug 03, 2004 1:30 am    Post subject: Tuning indexes Reply with quote

The scenario is..
for TABLE1 , there are 2 indexes defined
1)I1 on columns,
A1,A2,A3 & A4
2) I2 on columns
A4,A1,A2 & A3

Explain shows the usage of I1 index, only for the queries which have A1,A2 and A3 in the where clause
If A4 field is included in the query along with A1,A2 and A3 , then Index I2 is used even though A4 is a part of I1 index.

I want to know why this is happening and also if i can drop any one index , as both the indexes have the same set of fields but in different order.
Help at the earliest will be appreciated.
Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Aug 03, 2004 5:37 am    Post subject: Reply with quote

Meena,

Check the link which explains in detail about questions about data access

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAGH10/5.10.2?DT=20010212102121

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Meena
Beginner


Joined: 03 Aug 2004
Posts: 20
Topics: 15

PostPosted: Tue Aug 03, 2004 9:02 am    Post subject: Reply with quote

thanks .. it really is helping me
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group