Droping index before bulk loading

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ksk
Participant
Posts: 21
Joined: Fri Apr 30, 2010 4:55 am

Droping index before bulk loading

Post by ksk »

Hi,

The performance of bulk loader will increase if the destination table has no index so how to drop the index before bulk loading

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

How about a DROP INDEX statement (perhaps embedded in a stored procedure) executed from the "Before SQL" or "Open Command"?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ksk
Participant
Posts: 21
Joined: Fri Apr 30, 2010 4:55 am

Post by ksk »

ray.wurlod wrote:How about a DROP INDEX statement (perhaps embedded in a stored procedure) executed from the "Before SQL" or "Open Command"? ...
Is there is any other way without using jobs ?
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

ksk wrote:
ray.wurlod wrote:How about a DROP INDEX statement (perhaps embedded in a stored procedure) executed from the "Before SQL" or "Open Command"? ...
Is there is any other way without using jobs ?
:idea: Don't have the index in the first place ?

Is that an interview question ?

What types of index do you have ? How many rows do you load ? Did you try loading without the index ? Is DataStage initiated via any third party tool ?
ksk
Participant
Posts: 21
Joined: Fri Apr 30, 2010 4:55 am

Post by ksk »

Sainath.Srinivasan wrote:
ksk wrote:
ray.wurlod wrote:How about a DROP INDEX statement (perhaps embedded in a stored procedure) executed from the "Before SQL" or "Open Command"? ...
Is there is any other way without using jobs ?
:idea: Don't have the index in the first place ?

Is that an interview question ?

What types of index do you have ? How many rows do you load ? Did you try loading without the index ? Is DataStage initiated via any third party tool ?
b tree index, 1 million rows,ya its possible to do with datastage job as ray said but looking out for some other way like using scripts mean while am not using any third party tool
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Just login to the database and drop the index!
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And while bulk loader performance may be improved, don't forget to factor in the time it will take to rebuild the dropped index.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply