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 without updating an index

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


Joined: 05 Nov 2006
Posts: 89
Topics: 36

PostPosted: Wed May 13, 2009 6:14 pm    Post subject: load without updating an index Reply with quote

hi,

is it possible to run a load utility without updating one or more indexes of the table?

thanks.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Wed May 13, 2009 9:47 pm    Post subject: Reply with quote

jctgf,

I think it canNOT be done, but I am curious as to why you want to do it.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jctgf
Beginner


Joined: 05 Nov 2006
Posts: 89
Topics: 36

PostPosted: Thu May 14, 2009 5:46 pm    Post subject: Reply with quote

hi,

every month i need to run a load replace on a table that contains 9 billion records.

the table contains 2 indexes and, in order to make it faster, i have been dropping the second index of the table, running the load and then rebuilding the index.

recently i was told that dropping an index is extremely dangerous because it may lock the database and cause serious damage to the entire environment.

so, i was wondering if i could run the load without updating this index (in order to make it faster). at the end of the load, i'd rebuild the index.

thanks.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Thu May 14, 2009 11:06 pm    Post subject: Reply with quote

jctgf wrote:
the table contains 2 indexes and, in order to make it faster, i have been dropping the second index of the table, running the load and then rebuilding the index.


Is this a partitioned table? Look up the concurrent loads of partitions

Alternatively you can improve the performance of the load utility by having the data sorted on the Index sequence.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
NASCAR9
Intermediate


Joined: 08 Oct 2004
Posts: 274
Topics: 52
Location: California

PostPosted: Fri May 15, 2009 9:29 am    Post subject: Reply with quote

I think you need to step back and look at the volume of data you are loading. It will take a little while. What kind of time are you taking about? Are you running stats after your load? Like kolusu said, sorting the data will help, but when you add the time of the sort and the load together is it worth the extra step? I don't know.
_________________
Thanks,
NASCAR9
Back to top
View user's profile Send private message
jctgf
Beginner


Joined: 05 Nov 2006
Posts: 89
Topics: 36

PostPosted: Sat May 16, 2009 7:22 am    Post subject: Reply with quote

thanks.
can some one give me some tips about version 8 partitioned table, please?
i was told that in this case a partitioned index is not necessary anymore.
what's the CREATE TABLE code to create such a table?
i'll still need a partitioned criteria, right? where do i declare it considering that there's no partitioned index?
thanks.
Back to top
View user's profile Send private message Send e-mail
jctgf
Beginner


Joined: 05 Nov 2006
Posts: 89
Topics: 36

PostPosted: Sat May 16, 2009 7:25 am    Post subject: Reply with quote

hi,

recently i was told that dropping an index is extremely dangerous because it may lock the database and cause serious damage to the entire environment.

how true is it please?

what can i do to avoid locking the whole thing?

thanks.
Back to top
View user's profile Send private message Send e-mail
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Sat May 16, 2009 8:41 am    Post subject: Reply with quote

Was just reading Partitioned Tables/NPI by Craig Mullins. Don't know if it applies, but worth the read.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
jctgf
Beginner


Joined: 05 Nov 2006
Posts: 89
Topics: 36

PostPosted: Sun May 17, 2009 8:36 am    Post subject: Reply with quote

hi!

I was wondering if I could run a "recover" instead of a "load".

I'm not very familiar with the "copy/recover" utilities.

can I select records with a "copy" utility?

can I turn off the update of an index before running a "recover" and then rebuild the index when the "recover" is over?

thanks.
Back to top
View user's profile Send private message Send e-mail
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Mon May 18, 2009 12:16 pm    Post subject: Reply with quote

jctgf,

If I am not wrong, I think you are looking for the "Table Partition".
In Table partitioning, Partitioning Index is not required.

Check the link:

http://www.neodbug.org/nov_2006/Partitioning_Maint_Perf.pdf

-Satya
_________________
Satya
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