< Previous Challenge - Home - Next Challenge >
In this challenge you will dig into best practices you have to consider writing query for your data warehouse.
You can find all the files for this challnge into the Zip file provided by your coach at this path: ./Resources/Challenge-02/
Learning objectives:
Users are complaining that after importing data into a production table using CTAS the first reporting query involving it is always slow. Subsequent queries are usually faster and with good performance. Investigate why the first execution is taking longer than usual.
Open C2_1_Statistics.sql and try to understand why first execution for the proposed SELECT is much more slower than the second one. Use the suggested T-SQL commands to investigate the issue. Were all statistics in place when you ran the first attempt ?
Despite the query is leveraging multiple Replicated Table users are complaining about poor performance and they noticed some potentially un-necessary data movement. Could you help fixing it and improving the performance ?
Users are complaining an important query is taking much more than expected to complete and ask for your help. Investigate why the query is so slow and make it faster.