Page 1 of 1

Does reducing the stages, improves the performance?

Posted: Thu Jul 29, 2004 7:57 am
by Ravindar
Hi all,

In one of my job I have three consecutive transformer stages.
It is possible to club the three transformers into one transformer.

Is there any difference in performance between
----------having three transformer stages seperately
and
----------having one transformer.

If so how?
Can anybody explain in detail.

Thanks,
Ravin

Posted: Thu Jul 29, 2004 8:17 am
by kcbland
Technically YES, but the gains vary depending on the operations being done. Filtering out rows in one transformer may reduce the rows that flow to a subsequent transformer where the derivations are more intense. In this case, you're better off having more transformers. More tranformers allows you to simplify some logic and mitigate any performance overhead by using row buffering.

You should simply benchmark a job like seq-->xfm-->xfm-->xfm-->seq where the rows are simply passed thru the transformers. Benchmark it with 3 and then remove one at a time and see the performance differences for yourself.

Then, repeat the same test, scattering some logic across all three transformers and benchmark the performance changes as you move the logic towards the first transformer.

In my experience, you're better off using easier to manage designs and performance tune thru other means. Reducing tranformers is not the silver bullet to performant jobs.

Posted: Thu Jul 29, 2004 8:31 am
by chucksmith
Also, consider the parallel approach using a link partitioner and a link collector. If your data supports partitioning, and you have multiple CPUs, then more may be better.

Posted: Thu Jul 29, 2004 10:52 am
by sumitgulati
I totally agree with Kenneth Bland. If you have intense transformations then using multiple transformers prevents overloading of one transformer. By splitting the load across transformers you actually do a load balancing. This definitly gives a better performance if you use row buffering. However for simple transformations avoid using multiple transformers.

Regards,
Sumit