且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在 sql server 2008 上运行并行查询?

更新时间:2022-11-27 21:12:34

您不需要:优化器根据查询的成本"(以及其他一些因素)做出决定

You don't: the optimizer decides based on the "cost" of the query (and some other factors)

参见 BOL:并行查询处理

现在,您可以使用 MAXDOP 限制并行度或更改成本阈值,但我不会这样做.

Now, you can limit parallelism with MAXDOP or change the cost threshold, but it's not something I'd do.

为什么要明确设置?