Developing SQL Databases — Question 155

You have a data warehouse fact table that has a clustered columnstore index.
You have multiple CSV files that contain a total of 3 million rows of data.
You need to upload the data to the fact table. The solution must avoid the delta group when you import the data.
Which solution will achieve the goal in the least amount of time?

Answer options

Correct answer: A

Explanation

The correct answer is A because loading the data into a staging table first allows for efficient bulk operations with the INSERT_SELECT statement and the TABLOCK option, preventing delta group creation. Option B, while parallel, may still result in a delta group and is not the fastest method. Options C and D are not optimal as they do not leverage the staging table for the best performance.