Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am new to talend. Can anybody let me know when to use tAggregateRow and when to use tSortRow ->tAggregateSortedRow as both will give the same output.
Hi,
Please refer below post where it is explained with an example.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Hi,
tAggregateSortedRow aggregates the sorted input data for output column based on a set of operations.
tAggregateRow receives a flow and aggregates it based on one or more columns.
https://help.talend.com/reader/KxVIhxtXBBFymmkkWJ~O4Q/VVQYE5AV~OFaAnSfC13t2g
https://help.talend.com/reader/KxVIhxtXBBFymmkkWJ~O4Q/i_YvOl2oUaVpW1UTnJao_g
So the first one will avoid the sorting part since the assumption is that incoming data is already sorted. So for sorted data, tAggregateSortedRow will give better performance.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Thanks Nikhil for the reply. But if the source data is not sorted then which one of below two will give better performance.
1:-tAggregrateRow
2:- tSortRow ->tAggregateSortedRow
Or both of them will give the same performance
Hi Shameer,
It will be more or less same performance since you have to same actions (either within one component or through two components).
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Hi,
The 2 options you suggest have one major functional difference - if your incoming data set you're try to aggregate is large then using tSortRow & tAggregatedSortedRow is the only way to go. tAggregateRow has to maintain the data set in memory, so will have issues as the size of the data set increases. Use the sort on disk functionality in the tSortRow and you'll be fine.
Hi David,
Does tAggregateRow make a implicit sorting in memory? And then keeps tAggregateRow those sorted rows in memory?