I am new to SQL Server, though have spent sufficient time in Oracle databases. In the current application I am managing contains a lot of denormalized staging tables to receive upstream data.
Views have been created on staging tables each consisting of about 40 tables and multiple joins. These views load datamart tables of the same name as the view in another database.
These views take a lot of time to load the datamart table approx 5hrs. The logic is truncate load i.e. each day whole database is truncated and data is loaded from source system files using format files into staging area tables.
How to tune these views to make the load process faster as the truncate load process has been written on purpose?