agpt wrote:are you doing same kind of transformation processing on all 100 elements?
if so, you might want to use one transformer job to do this processing on all the elements first at one go and then may be you can use a switch stage to send the output to different DS based on value of complex elements.
No dear...Its not the same transformation in all the transformers...
Can you please post the real example may be with one complex variable only like what it is and what transformation your are doing and based on what how you are taking output. It might help us in finding the solution.
How "complex" is each complex element? Does each of the "100" have it's own inner repeating nodes? Or is each of the 100 just a single set of additional elements that occurs one time? (or perhaps some of them have multiples while others do not)....
The XMLInput Stage can do all of that in one single process. I will admit, having 100 links coming out of a single XMLInput might be pushing it, but certainly 20 or 25 isn't too much. The same XMLStage and the same job can handle a lot of these, with one single read of your XML document and loading it only one time into memory.
If any of the "100" are truly single occurring, they can all be on the same link, even if they are independent complex nodes.
Done right and you might have 4 or 5 jobs instead of 100.....
Yes 90% of the complex elements are nested and can repeat any number of time and its cardinality is 0..N.
I cant take multiple complex element in a transformer because The XML stage will let you assign only one column as key column.
So incase If I try to fetch more than one complex element in one go , It is highly posiible that I may loose data.
I swet a lot to understand this fact. And also incase I assign the parent key as a key for a group of parent and nested elements, I will be able to take only one child
The Repetition element is "one per output link"....so you should definitely be able to improve on your current scenario dramatically. One link for each detailed repeating node scenario.
chulett wrote:Yah, you've made this way more complicated than it needs to be.
But what other option I have other than this.
I tried everything that suggested in this thread but I did not get any improvement.
But now its working as per my expection and everyone at my end is finally happy. They allowed me to close this defect...Ahhhh... I am the fourth person that defect has assigned to...