Core component of SQL Server for storing, processing, and securing data
What edition of SQL Server do you have?
Only enabling Query Store is not that likely to improve matters(*), what Query Store does is to capture information about your query execution. That is, you can use Query Store to find out where you bottlenecks are.
A recommended approach with upgrades like this is as follows:
- Make sure Query Store is enabled.
- Make sure that the compatibility level is the old level, in your case 130.
- Run with this for a week or two.
- Switch to the new compat level, in this case 160.
You can now use Query Store to find regressed queries, and you can also address queries by forcing the old plan from the older compat level through Query Store. This may not be a long-term solution, but it helps with the critical issue.
There is is also tooling support for this in SSMS. Right-click a database and select Tasks from the context menu, and at the bottom of the task menu there is Database Upgrade.
If you feel that you see performance degradation also with compat level 130, you will need to dig deeper in the Query Store data to find slow queries and think about how they can improved.
(*) There are however some Intelligent QP features that builds on Query Store. They analyse plans for certain patterns, and they can induce Query Store hints to affect cardinality estimation. So that way Query Stored can actually improve performance only by being on. But again, these are quite special cases and do not always happen. Also, these features are only available in Enterprise Edition.