Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Already im tried to extract the id from my table of client from mysql database, via tMap comparing the rows name of my table with a excel with the name of clients, i wrote a rountines with the name searchIdByName, for filter when the name are the same, return "ID" if not equal return "0", but when are about 55 millones of rows, talend just stuck, just frezzing, somebady can help me pls?
rhall_2.0 wrote:
Try something like this....
1) Connect the Excel file to the tMap as the Main row.
2) Connect the MySQL db as a lookup
3) Set the lookup table to "Reload At Each Row"
4) You will see a section appear to set a globalMap variable. Set this to be the field in the Excel file you want to match.
5) In the SQL of the MySQL lookup query, use the value of the globalMap in the WHERE clause
This will mean that you will not have to search through ALL of your MySQL table to find matches with the Excel file.