[英]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. 我正在开发一个SSIS包,并将数十亿条记录迁移到目标表中。 I have currently created 5 staging tables and used a split function to segregate the records by year for each staging table. 我目前已创建5个登台表,并使用split函数按年份将每个登台表的记录分开。
I am planning to partition the main destination table and then switch the 5 staging records to it. 我打算对主目标表进行分区,然后将5个登台记录切换到该表。 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. 我想知道SSIS直接写入分区还是写入暂存表,然后执行切换到分区表的操作是否更好。
Could somebody tell me which is the desired approach ? 有人可以告诉我哪种方法是理想的吗?
Conditional split in SSIS 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. 您已经创建了一个分区来处理单个表,将其拆分为多个临时表是不需要的更多工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.