Link to home
Start Free TrialLog in
Avatar of ajaybelde
ajaybeldeFlag for United States of America

asked on

How to disable indexes while inserting data?

I am loading 300million records into a table. It has been taking long time to insert.
I want to disable Indexes on that table to make it faster. Can i disable them with out stopping the load process?
Avatar of MrNetic
MrNetic
Flag of Portugal image

Have you ever considering drop index and create in the end.
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

I don't believe you can 'disable' an index.  I think you will need to drop it.
Avatar of ajaybelde

ASKER

To drop indexes the load process should be terminated otherwise it will give "RESOURCE BUSY" error. Isn't it?
So, I just wanna make those indexes unusable.
ASKER CERTIFIED SOLUTION
Avatar of johnsone
johnsone
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I can drop and recreate after load is done.
I wanna make sure whether i can make them unusable on the fly or not?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial