开发者

Control the CPU usage during TSQL query- sql 2008

I have some heavy queries that are running offline on a sql database to manipulate data. the queries are running and sometimes take a significant part of the computer resources. Is there a way to control/adjust the CPU usage on i开发者_Go百科n a given query / stored procedure?

thanks


Per query you can use MAXDOP to limit number of CPUs used queries (when parallelism applies)

You can't throttle CPU time or %

If you have one CPU only, then your option is upgrade. However, CPU bound queries generally indicate poor quality code ir lack of indexes etc...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜