I insert about 7 million rows into a table in SQL Server. The table has about 9-10 columns and has a clustered index on 2 keys (columns) and 3 more unclustered indexes. I am trying to perform high performance / bulk data insertion, but it becomes quite slow after inserting 3 million records with disk usage up to 99%. Here is what I did to speed up this process:
1) Disabled all non-clustered indexes. I did not disable the 2-column clustered index because the data cannot be inserted after disabling the clustered index?
2) I use C # SqlBulkCopy to do bulk insertion of 5000 records each time.
3) There are no restrictions and triggers in the table
Do I have to do something to speed up this data insertion process?
iefpw source share