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

Are indexes nesessary to perform data retrieval


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

New User


Joined: 11 Apr 2007
Posts: 19
Location: hyderabad

PostPosted: Thu Jul 12, 2007 2:33 pm
Reply with quote

hi all,

Are indexes nesessary to perform data retrieval operations on a table? I have heard that db2 "need not" use the index while doing table operation icon_exclaim.gif .
then , supposing that performance is not an issue , can we use tables without indices??

thanks in advance,
Ratheesh.
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Thu Jul 12, 2007 3:21 pm
Reply with quote

It is not a must that each and every table should have an index.
As you have said,index is to improve the perfromance and provide faster access to data.
Each index is based on the values of data in one or more columns of a table.Improve performance and Ensure uniqueness are the key factors of indexing.
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 Jul 12, 2007 10:04 pm
Reply with quote

Hello,

Hopefully, it is realized that if there are no key definition(s) every time the table is read every row in the table will be read - the code may choose to skip unwanted rows, but every one must be read.
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 Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top