We are running into the issue that our stored procedure on our new SQL Server performs a lot slower than on the old server. We looked into the problem and noticed the following on our temp db. The incremental growth takes 3 times as long on the new server. The same happens for the log file of our database. What is causing this?
Sql-server – Tempdb log growth 3x as slow on new server, SP does not perform
auto-growthperformancesql serversql-server-2019
Related Question
- SQL Server TempDB – Transaction Log Issue and Performance
- SQL Server – SET NOCOUNT Error Handling After Upgrade
- SQL Server – Causes for Generating New Plan for Stored Procedure
- Sql-server – Database T-Log is full due to ‘Active_transaction’. SQL server is using new T-log file first rather than old
- Sql-server – SP runs slower on new server
- Urgent Help with TempDB Log File Growth Mystery in SQL Server
Best Answer
Use the Session Wait Stats and the Query Store to figure out if there are more waits (like IO) on the new server or if the query plan is worse.
Use DISKSPD to benchmark the IO performance on both servers. Log file growth always requires zero'ing the allocated space. Also pre-size the log files and increase the auto-growth increment.