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 

Load on tbl with no unique index

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
drammo
Beginner


Joined: 13 Jan 2006
Posts: 20
Topics: 10

PostPosted: Mon Jan 30, 2006 2:32 pm    Post subject: Load on tbl with no unique index Reply with quote

I am LOADing data in to a table with no unique indices. However 3 non-unique indices are created on it. Will it help to sort the input dataset on one of these non-unique indices (the one which is most likely be used)?

Thanks!
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Tue Jan 31, 2006 9:54 am    Post subject: Reply with quote

drammo,

I would think so. Yes.

Regards,
Manas
_________________
There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948)
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
schintala
Beginner


Joined: 18 May 2005
Posts: 108
Topics: 31
Location: USA

PostPosted: Tue Jan 31, 2006 3:20 pm    Post subject: Reply with quote

It really doesn't matter whether you have unique or non unique indexes in the table. During load utility, sort is one of the phase which runs after reload phase.
Back to top
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Wed Feb 01, 2006 10:08 am    Post subject: Reply with quote

schintala,

The SORT phase runs after the RELOAD phase only if you let it run. If drammo wants to run a load with the records sorted on one particular (frequently used) index, it would be a better idea to sort the input file before loading it.
If we drop all the indexes other than the one on which you want the records sorted, and load the input file(already sorted on the one remaining index), DB2 load will skip the SORT phase after the RELOAD phase.
After the load, you will have all the records sorted on the index you want. You can then create the remaining indexes that you had dropped before the load.

Regards,
Manas
_________________
There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948)
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
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