Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a job that updates and deletes records in multiple tables based on the same input data.
I'm comparing the rm table in the v24 MSSQL db and in the v26, if a record was deleted in the v24, it has to be deleted in the v26.
This is what's happening with tMap_3, it finds the matching bl_id, fl_id and rm_id as keys.
But before deleting that record in the rm table, the three keys are used as foreign keys in other tables records and have to be deleted or updated.
So in "rmpct" the records that have these three foreign keys are deleted, while in the other tables such as activity_log for example, the values of these three keys have to be emptied. So I use a tMap with a lookup to find the corresponding primary key and then update the values of these records.
To do that for the different tables, I use a tReplicate but now the problem is that it takes a really long time (30 min).
Any idea on how I could optimize this?
Thanks!
Hi
All tMap output is executed in parallel, which takes up more memory resources.
You can optimize job design from the following aspects:
Regards
Shong