You can establish order in a mapping with a sorted flat file source, a sorted relational source, or a Sorter transformation. When the Data Integration Service adds a partition point to a mapping, it might redistribute data and lose an order established earlier in the mapping. To maintain order in a partitioned mapping, you must specify that some transformations and Write transformations maintain the row order.
You can specify that the following mapping objects maintain the row order of the input data:
Expression transformation
Java transformation
Sequence Generator transformation
SQL transformation
Write transformation
For example, if a relational target has a database trigger that depends on the data being written in the sorted order, configure the Write transformation to maintain the row order.
When you configure Write transformations to maintain row order, the Data Integration Service uses a single thread to write to the target. If an Aggregator transformation that uses sorted input precedes the Write transformation, the Data Integration Service uses a single thread to process both the Aggregator transformation and the target.
When you configure all other transformations to maintain row order, the Data Integration Service determines the optimal number of threads for the transformation pipeline stage while maintaining the order.
The method that you use to configure transformations to maintain row order depends on the following object types:
Expression, Sequence Generator, or SQL transformation
Select the
Maintain Row Order
property in the
Advanced
properties of an Expression, Sequence Generator, or SQL transformation.