SAP ASE version 16.0 and later improves the performance on certain parallel queries that include SORT operators.
If the query does not meet this criteria, the query processor uses the standard SORT operator included with SAP ASE versions earlier than 16.0 (also called the DEFAULT sort).
| | | | |MERGE JOIN Operator (Join Type: Inner Join) (VA = 5) | | | | | Using Worktable2 for internal storage. | | | | | Key Count: 1 | | | | | Key Ordering: ASC | | | | | | | | | | |SORT Operator (VA = 3) | | | | | | Using Worktable1 for internal storage. | | | | | | | | | | | | |EXCHANGE Operator (VA = 2) (Replicated) | | | | | | |Executed in parallel by 1 Producer and 8 Consumer processes. | | | | | | | | | | | | | | |EXCHANGE:EMIT Operator (VA = 1) | | | | | | | | | | | | | | | | |SCAN Operator (VA = 0) | | | | | | | | | FROM TABLE | | | | | | | | | t2 | | | | | | | | | Table Scan. | | | | | | | | | Forward Scan. | | | | | | | | | Positioning at start of table. | | | | | | | | | Using I/O Size 16 Kbytes for data pages. | | | | | | | | | With LRU Buffer Replacement Strategy for data pages.
| | | | |MERGE JOIN Operator (Join Type: Inner Join) (VA = 6) | | | | | Using Worktable3 for internal storage. | | | | | Key Count: 1 | | | | | Key Ordering: ASC | | | | | | | | | | |SORT (GETSORTED) Operator (VA = 4) | | | | | | Using Worktable2 for internal storage. | | | | | | | | | | | | |EXCHANGE Operator (VA = 3) (Replicated) | | | | | | |Executed in parallel by 1 Producer and 8 Consumer processes. | | | | | | | | | | | | | | |EXCHANGE:EMIT Operator (VA = 2) | | | | | | | | | | | | | | | | |SORT (SORTBUILD) Operator (VA = 1) | | | | | | | | | Using Worktable1 for internal storage. | | | | | | | | | | | | | | | | | | |SCAN Operator (VA = 0) | | | | | | | | | | FROM TABLE | | | | | | | | | | t2 | | | | | | | | | | Table Scan. | | | | | | | | | | Forward Scan. | | | | | | | | | | Positioning at start of table. | | | | | | | | | | Using I/O Size 16 Kbytes for data pages. | | | | | | | | | | With LRU Buffer Replacement Strategy for data pages.