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 

Index on partitioned table space

 
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: Mon Dec 06, 2004 1:29 am    Post subject: Index on partitioned table space Reply with quote

hi,

I have a partitioned table space whch is partitioned on DEPT key and so is the index I1 defined on DEPT key.
If i define another non-partitioned index say I2 on ID and Name , then when i use this index , what scan will DB2 perfrom.

Example

If i have such a condition as..
The same ID+NAME can occur in different DEPT , then when i execute a query which includes ID and NAME chk in the where clause , then DB2 has to scan all the partitions to get the data.
In this case how will the index I2 be used?
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Tue Dec 07, 2004 6:30 am    Post subject: Reply with quote

Hi Meena,

where is the point?

With the predicates on ID and NAME in the where clause a couple of qualifying RIDs will be identified, and these rows will be read via the normal access possibilities:
- direct read if they are distributed randomly
- asynchronously if sequential detection is "fired"

regards
Christian
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