sql-serveretltempdb

Best Options to lead with tempDB with a lot of data


In order to load data from multiple data sources and a big amount of Data using SQL Server 2014.

My ETL Scripts are in T-SQL and it taking a lot of time to execute because my TempDB are full.

In your opinion, which is the best way to lead with this:


Solution

  • They only way to answer this question is with a very high level general response.

    You have a few options:

    1. Simply allocate more space to TempDB.
    2. Optimize your ETL queries and tune your indexes.

    Option 2 is often the better apporoach. Excessive use of TempDB indicates that inefficient sorts or joins are occurring. To resolve this, you need to analyze the actual execution plans of your ETL code. Look for the following:

    Hope this was helpful.

    Marius