You are on page 1of 3

SORTER TRANSFORMATION

Connected and Active Transformation The Sorter transformation allows us to sort data. We can sort data in ascending or descending order according to a specified sort key. We can also configure the Sorter transformation for case-sensitive sorting, and specify whether the output rows should be distinct. When we create a Sorter transformation in a mapping, we specify one or more ports as a sort key and configure each sort key port to sort in ascending or descending order. We also configure sort criteria the ower Center Server applies to all sort key ports and the system resources it allocates to perform the sort operation. The Sorter transformation contains only input!output ports. All data passing through the Sorter transformation is sorted according to a sort key. The sort key is one or more ports that we want to use as the sort criteria. Sorter Transformation Properties 1. Sorter Cache Size: The ower Center Server uses the Sorter Cache Si"e property to determine the ma#imum amount of memory it can allocate to perform the sort operation. The ower Center Server passes all incoming data into the Sorter transformation $efore it performs the sort operation. We can specify any amount between % &$ and ' ($ for the Sorter cache si"e. )f it cannot allocate enough memory, the ower Center Server fails the Session. *or best performance, configure Sorter cache si"e with a value less than or e+ual to the amount of available physical ,A& on the ower Center Server machine. )nformatica recommends allocating at least - &$ of physical memory to sort data using the Sorter transformation. 2. Case Sensitive: The Case Sensitive property determines whether the ower Center Server considers case when sorting data. When we enable the Case Sensitive property, the ower Center Server sorts uppercase characters higher than lowercase characters. 3. Work Directory .irectory ower Center Server uses to create temporary files while it sorts data. 4. Distinct: Check this option if we want to remove duplicates. Sorter will sort data according to all the ports when it is selected.

E amp!e: Sortin" #ata of E$P %y E&'$E Source is /& table. Create a target table /& 0S1,T/,0/2A& 3/ in target designer. Structure same as /& table. Create the shortcuts in your folder. Creatin" $appin": %. 1pen folder where we want to create the mapping. 4. Click Tools -5 &apping .esigner. 6. Click &apping-5 Create-5 (ive mapping name. /#7 m0sorter0e#ample '. .rag /& from source in mapping. 8. Click Transformation -5 Create -5 Select Sorter from list. (ive name and click Create. 9ow click done. :. ass ports from S;0/& to Sorter Transformation. <. /dit Sorter Transformation. (o to orts Tab -. Select /9A&/ as sort key. C=/C> mark on >/? in front of /9A&/. @. Click roperties Tab and Select roperties as needed. %A. Click Apply -5 1k. %%. .rag target table now. %4. Connect the output ports from Sorter to target table. %6. Click &apping -5 Balidate %'. ,epository -5 Save Create Session and Workflow as described earlier. ,un the Workflow and see the data in target table. &ake sure to give connection information for all tables. Samp!e Sorter $appin" :

Performance T(nin": Sorter transformation is used to sort the input data. %. While using the sorter transformation, configure sorter cache si"e to be larger than the input data si"e. 4. Configure the sorter cache si"e setting to be larger than the input data si"e while Csing sorter transformation. 6. At the sorter transformation, use hash auto keys partitioning or hash user keys artitioning.

You might also like