Page 1 of 1

Droping index before bulk loading

Posted: Mon Jul 05, 2010 11:45 pm
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

Posted: Tue Jul 06, 2010 12:33 am
by ray.wurlod
How about a DROP INDEX statement (perhaps embedded in a stored procedure) executed from the "Before SQL" or "Open Command"?

Posted: Tue Jul 06, 2010 12:43 am
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 ?

Posted: Tue Jul 06, 2010 1:03 am
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 ?

Posted: Tue Jul 06, 2010 3:41 am
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

Posted: Tue Jul 06, 2010 4:30 am
by ray.wurlod
Just login to the database and drop the index!

Posted: Tue Jul 06, 2010 6:00 am
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.