IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Performance with index order usage


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vallabhaneni

New User


Joined: 30 Sep 2006
Posts: 5

PostPosted: Thu Mar 05, 2009 2:33 am
Reply with quote

Hello,

I need help ond DB2 performance.

I have table T1 index is IX on columns C1, C2, C3, C4 .

right now the sql in the program is

Select * from T1
Where C1 = 1
and C3 = 3
and C4 = 4
and C2 = 2

program is using the index columns in the where clause,

but the index order is C1,C2, C3, C4 but the where cluase is using
C1,C3,C4,C2

Is that matter to performance?.

Please clrify

Thank you
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Mar 05, 2009 2:38 am
Reply with quote

Hello,

Quote:
Is that matter to performance?.
It should not matter. The optimizer should recognize this.

You might talk with your dba and run an "explain" for confirmation.
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Thu Mar 05, 2009 4:03 pm
Reply with quote

it doesnt affect performance ....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Rotate partition-logical & physic... DB2 0
No new posts exploiting Z16 performance PL/I & Assembler 2
No new posts Cobol file using index COBOL Programming 2
No new posts STEM usage in REXX CLIST & REXX 14
No new posts JOIN STATEMENT PERFORMANCE. DFSORT/ICETOOL 12
Search our Forums:

Back to Top