| :::image type="icon" source="media/showplan-logical-and-physical-operators-reference/icon-nested-loops.png" border="false"::: | **Nested Loops** | The **Nested Loops** operator performs the inner join, left outer join, left semi join, and left anti semi join logical operations.<br /><br />Nested loop joins perform a search on the inner table for each row of the outer table, typically using an index. The query processor decides, based on anticipated costs, whether to sort the outer input in order to improve locality of the searches on the index over the inner input. Any rows that satisfy the (optional) predicate in the **Properties** pane are returned as applicable, based on the logical operation being performed. When the `OPTIMIZED` attribute is set to `True`, it means that an Optimized Nested Loops (or Batch Sort) is used.<br /><br />**Nested Loops** is a physical operator. For more information, see [Understanding Nested Loops joins](../relational-databases/performance/joins.md#nested_loops). |
0 commit comments