Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Are indexes nesessary to perform data retrieval

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Are indexes nesessary to perform data retrieval
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: Chennai

PostPosted: Thu Jul 12, 2007 3:21 pm    Post subject: Re: Are indexes nesessary to perform data retrieval
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

Site Director


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

PostPosted: Thu Jul 12, 2007 10:04 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us