If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Dropping indexes while loading the data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-11, 01:31
harshrpce harshrpce is offline
Registered User
 
Join Date: Nov 2010
Posts: 12
Dropping indexes while loading the data

Hi All,
Please help on this :

I want to drop the indexes of a table while loading the data into table as load is taking too much time in building the indexes. Is this possible..please revert asap its very urgent.


Regards,
Harsh Verma
Reply With Quote
  #2 (permalink)  
Old 04-22-11, 05:11
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
if the load is in progress, you cannot.

this is true in case of db2. don't know what database you are talking about as you haven't mentioned.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 04-22-11, 07:15
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by harshrpce View Post
I want to drop the indexes of a table while loading the data into table as load is taking too much time in building the indexes
You'll probably have to (re)build the indexes anyhow after the load finishes, that is: the "create index" will do that.
So it's not necessarily a good idea to drop indexes before starting the load.
(It could be, sure; but all depends on a lot of other aspects.)
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #4 (permalink)  
Old 04-27-11, 10:54
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
Quote:
Originally Posted by harshrpce View Post
Hi All,
Please help on this :

I want to drop the indexes of a table while loading the data into table as load is taking too much time in building the indexes. Is this possible..please revert asap its very urgent.


Regards,
Harsh Verma
if it is not an index enforcing PK or unique constraints.
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On