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

DATACOM - Master Key, Natvie Key and Index


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
latron

New User


Joined: 10 Dec 2008
Posts: 2
Location: CHENNAI

PostPosted: Wed Dec 17, 2008 4:35 am
Reply with quote

Having understood, that Native Key Dictates the Physical Sequence in which data is stored in Data Area. Would it perform better if the Index is created based on Native Key And my 'where' clause also only the columns defined in Native Key ?

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: Wed Dec 17, 2008 5:58 am
Reply with quote

Hello and welcome to the forum,

Suggest you spend some time in the DBA Admin Guide. I believe your understanding will benefit.

In many tables (even most tables), the master key and the native key are the same key. There are very often multiple other keys to the data in the table - either simple or complex keys.

Proper definition of the keys depends on how the data will be used.

Quote:
Would it perform better if the Index is created based on Native Key And my 'where' clause also only the columns defined in Native Key ?
Performance is best when the WHERE predicate(s) is/are completely satisfied by the column(s) of some particular key.
Back to top
View user's profile Send private message
latron

New User


Joined: 10 Dec 2008
Posts: 2
Location: CHENNAI

PostPosted: Wed Dec 17, 2008 6:56 am
Reply with quote

That's clear. Thank you.
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Cobol file using index COBOL Programming 2
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts Add column to existing records using ... JCL & VSAM 2
No new posts choice of clustering index DB2 3
No new posts Secondary index error while loading d... IMS DB/DC 2
Search our Forums:

Back to Top