Drop Index

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
dsisbank
Premium Member
Premium Member
Posts: 50
Joined: Fri Aug 11, 2006 4:53 am

Drop Index

Post by dsisbank »

I want to drop all index to improve loading proceses,But i have to upsert medhod because primary key of table is increasing by trigger automatically.
oracle target stage hasnt open/close command.
how can i drop index before ınserting and create after inserting.
hema arvind
Participant
Posts: 26
Joined: Fri Jun 30, 2006 9:24 am

Post by hema arvind »

You can create a procedure which contains the SQL related to dropping and re creating the indexes.

From the datastage job,you can call the procedure.
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

if you want to use write method=Load, then there is a option for Index Mode=Rebuild.

if you drop the index, Upsert will not work, it may insert duplicate records
dsisbank
Premium Member
Premium Member
Posts: 50
Joined: Fri Aug 11, 2006 4:53 am

Post by dsisbank »

but i cant use load medhod because of primary key loaded by triger
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

If you are going for Upsert method, droping index before loading will inturns degrade the performance. Upsert should look for the presence of key in the table before loading into it. Index will help for this.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply