Hi, I have a database that is migrated from SQL 2014 to SQL 2022,the database compatibility mode on SQL 2022 is still on SQL 2008.
One Select Query is always running against this database, that returns just 340 records. There are Joins in this Select query.
This query is running in parallel and runs within 2 seconds, & because of this constantly server is hitting high CPU (90 to 100). Wait time: CXCONSUMER
Application users are happy with this response, and no complaints.
But I want to reduce the CPU usage on this server to say stay between 50 to 60 percent. The problem did not occur when this database was on the SQL 2014 server with same CPU count there(4)
My question is, if I increase CPU of the server from current value 4 to 8, will again this query start utilizing all the CPU on the server ?
Currently when this query runs it uses all the 4 processors on the server and thus max out the CPU. So if I increase CPU count from 4 to 8 will this query use all 8 CPUs and again max out the CPU?
SQL Server : 2022 ENT END
Processor: 4
Memory : 16
Any other suggestion you have? Thanks