简体   繁体   中英

Writing to partition table vs staging and switch in SSIS

I am developing a SSIS package and migrating billions of records into the destination table. I have currently created 5 staging tables and used a split function to segregate the records by year for each staging table.

I am planning to partition the main destination table and then switch the 5 staging records to it. I would like to know if it is better for the SSIS to write directly to the partition or write to a staging tables and then perform a switch to the partition table.

Could somebody tell me which is the desired approach ?

Conditional split in SSIS

在此处输入图片说明

After some discussion back and forth (see discussion) it seems the in this case have staging tables is not the best method. You have a partition already created to handle a single table and splitting that into many staging tables is more work that is not needed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM