Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Filter in the source

Hi team,
Now, I got two sources by tMSSqlInput and joined them in the tMap. I encountered a performance issue when i ran the subjob. The issue is which need to get all data than go to join. I think it's very slow. 
I want to do the filter in the tMSSqlInput, but i am not sure whether i can do it or not. Or do you have any idea for the issue?
0683p000009MDQr.png
This is script that i can NOT do the join in it.
0683p000009MDQw.png
Only do the join in the tMap.
0683p000009MDFf.png
Please help me  to review it, thanks.
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I have fixed the issue, just share my solution.
In the tMap , set Lookup Model to "Reload at each row" and add golobalMap variables.
0683p000009MDR1.png
Filter in tMSSqlInput, use WHERE in SQL code with golbalMap.
0683p000009MDR6.png

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi,
The tMap component needs load all data into local firstly and then doing match.
Depending on the filters you are using you could use ELT components to let the DBMS handle the filtering. Have you already checked talend ELT components for sql server? tELTMSsqlInput, tELTMSSqlOutPut and tELTMSSqlMap.
Best regards
Sabrina
Anonymous
Not applicable
Author

I think i can NOT use tELTMSSql component because my source data is from  different Database.
vapukov
Master II
Master II

Filter in tMySQLInput - it is normal WHERE in SQL code - so this is You can do easily,
but main idea of ELT - load data to destination and than compare and transform
ok, You are have 50 M in Lookup table, but how many in new(LoadPackage...)?
Anonymous
Not applicable
Author

Hi vapukov,
There are about 1000 rows in LoadPackage... which just is one day data.
But in the LoadRateFulfill.... WHERE conditions are from LoadPackage... result, so i have no idea how to do it.
Anonymous
Not applicable
Author

I have fixed the issue, just share my solution.
In the tMap , set Lookup Model to "Reload at each row" and add golobalMap variables.
0683p000009MDR1.png
Filter in tMSSqlInput, use WHERE in SQL code with golbalMap.
0683p000009MDR6.png