Share via

Queries have been running really slowly since upgrading the database to SQL Server 2025.

Amin 10 Reputation points
2025-11-23T09:59:35.84+00:00

After upgrading my SQL Server from versions 2014 and 2022 to 2025, the queries have become noticeably slower.

SQL Server Database Engine

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2025-11-23T09:59:47.3633333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    After upgrading your SQL Server to version 2025, it's not uncommon to experience slower query performance. One potential cause could be related to changes in the Cardinality Estimation (CE) model that were introduced in SQL Server 2014 and continued in later versions. If your queries were optimized for an earlier version, they might not perform as well under the new CE model.

    Here are some steps you can take to troubleshoot and potentially resolve the slow query performance:

    1. Examine the query plan: Look at the execution plans for the slow-running queries to identify any inefficiencies.
    2. Update Statistics: Ensure that the statistics for your tables are up to date, as outdated statistics can lead to poor query performance.
    3. Identify Missing Indexes: Use the SQL Server Dynamic Management Views (DMVs) to find any missing indexes that could improve performance.
    4. Rewrite Queries: Consider redesigning or rewriting the queries that are running slowly to optimize their performance.
    5. Check Compatibility Level: Ensure that your database compatibility level is set appropriately for SQL Server 2025. Sometimes, reverting to a previous compatibility level can help improve performance until you can optimize the queries for the new version.

    If all queries are running slower after the upgrade, the troubleshooting steps may differ, and you might need to investigate further into the specific causes of the performance degradation.


    References:

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.