What's the fastest way of doing an "exists in" or
Posted: Mon Jul 10, 2006 7:16 am
I'm currently designing a data archiving solution using DataStage, and as part of the solution I'll need to perform the following logic:
If [primary key] exists in [archive database] then delete specified record
My question is twofold:
1) What is the best/fastest way in DataStage of performing this lookup validation? For example, would a lookup of a hash file be best, or is there something else I can do? My concern with the hash file solution is that the hash file itself would take a long time to create owing to the large data volume in the archive database.
2) What is the best way of performing the delete within DataStage? Custom SQL in a database component?
Thanks in advance
David
If [primary key] exists in [archive database] then delete specified record
My question is twofold:
1) What is the best/fastest way in DataStage of performing this lookup validation? For example, would a lookup of a hash file be best, or is there something else I can do? My concern with the hash file solution is that the hash file itself would take a long time to create owing to the large data volume in the archive database.
2) What is the best way of performing the delete within DataStage? Custom SQL in a database component?
Thanks in advance
David