Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tJoin or tMap when joining multiple files?

Hello,
I have a job in which I have to join four files on the same key and then use a tMap to generate several data flows. I heard that when possible, we should avoid to use the tMap and use an equivalent component.
In terms of performance, is it better to join the files before the tMap with 4 tJoin components, or is it equivalent to join all four files inside the tMap?
Thanks,
Labels (2)
4 Replies
Anonymous
Not applicable
Author

Where do you heard avoid using a tMap? The tMap joins are very fast and flexible.
Anonymous
Not applicable
Author

Hi,
I think the related forum will be useful for you https://community.talend.com/t5/Design-and-Development/tJoin-vs-tMap/td-p/105405 to understand the usage of this two components.
Best regards
Sabrina
Anonymous
Not applicable
Author

jlolling, in a Talend presentation we were told that tMap is a heavy component, hence should be avoided when we could use a simpler component instead.
xdshi, thank you for the link to the discussion. It is indeed useful, but the comparison concerns only functionality while I am concerned only about performances: as the joins are basic, I can use either 4 tJoins or 1 tMap, which solution is faster?
Anonymous
Not applicable
Author

Hi,
Usually, the function of tJoin is joining two tables by doing an exact match on several columns. It compares columns from the main flow with reference columns from the lookup flow and outputs the main flow data and/or the rejected data.
tMap is buffer component which takes processing(lookup) in memory if you don't set basic configuration of storing temporary data on disk.
For a large set of data, try to store the data on disk instead of memory to avoid "outOfMemory" exception.
See the online related article TalendHelpCenter:Exception outOfMemory.
Best regards
Sabrina