Minaz (10/24/2013)
Hi Expert,As this a huge environment wanted to impement best practice for loading 5 - 10 millions of rows, please advice.
How do I take care of costraint and indexes?
Is drop / recreate indexes is good or dissable and enable indexes?
in both scenario if my cluster index is dropped or dissable, no one will be able to access the table hence data loading will break.
I was reading one article which suggested dissbling cluster index will dissable all the associated non cluster indexes and then enable the cluster index , do the data loading and enable all the non cluster index and rebuild all.
I need your input.
This would be, IMHO, a very good candidate for using a staging table (you should always use a staging table for imported data for many reasons) and partitioning.
--Jeff Moden
Change is inevitable... Change for the better is not.