Table of Contents

Search

  1. Preface
  2. Mappings
  3. Mapplets
  4. Mapping Parameters
  5. Mapping Outputs
  6. Generate a Mapping from an SQL Query
  7. Dynamic Mappings
  8. How to Develop and Run a Dynamic Mapping
  9. Dynamic Mapping Use Cases
  10. Mapping Administration
  11. Export to PowerCenter
  12. Import From PowerCenter
  13. Performance Tuning
  14. Pushdown Optimization
  15. Partitioned Mappings
  16. Developer Tool Naming Conventions

Developer Mapping Guide

Developer Mapping Guide

Maintain Order in a Partitioned Mapping

Maintain Order in a Partitioned Mapping

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.
Java transformation
Select the
Stateless
property in the
Advanced
properties of a Java transformation.
Write transformation
Select the
Maintain Row Order
property in the
Advanced
properties of the Write transformation.

0 COMMENTS

We’d like to hear from you!