简体   繁体   中英

Parallelism in SQL Server Execution Plan

I was trying to optimize my query and I've come across a Parallelism show plan operator, which I have not yet encountered before.

Was wondering, what is this for, and what does it indicate if it is included in an execution plan?

Thanks!

A Parallelism operator in a SQL Server execution plan shows that multiple threads will perform the work. For example, if the optimiser calculates that an operation would benefit from and can be split into multiple streams, it distributes into multiple streams of execution, performs the task in separate streams and then gathers the multiple streams back into a result set.

The Parallelism operator performs the distribute streams, gather streams, and repartition streams logical operations.

If you haven't seen it already: Execution Plan Basics

分发流执行计划图标Distribute streams execution plan icon

收集流执行计划图标Gather streams execution plan icon

重新分区流执行计划图标 Repartition streams execution plan icon

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM