Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Partition switching when you can have old data

$
0
0
Hi,I am thinking of migrating one of my databases and implementing partitions, and using partition switching to load data quickly, so I'm reading up about it. For the most part, it fits well, and I should be able to partition most of the data by a date key, but there will be cases where we do need to load data from the staging tables that is already loaded into a partition, and I am not sure about how that would be dealt with. Because the partition is already in use, I would want to do something like copy the partition that the data belongs in the partition, load the data into the newly copied partition, and then switch out the old partition, and then switch in the new partition. Is something like this possible? I don't see any function to copy a partition in this way. The alternative using partition switching would be to switch the partition out, load it, and put it back in, but the period where the partition is missing is going to be significant, if I don't have something in the partition slot in the meantime. Is there any good solution to this, or do I need to load the partitions without partition switching?

Viewing all articles
Browse latest Browse all 3145

Trending Articles