Joining SeqFile and oracle Table

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
deepbanerji
Participant
Posts: 14
Joined: Fri Sep 03, 2004 2:50 pm
Location: NJ

Joining SeqFile and oracle Table

Post by deepbanerji »

Hi,
I have to Join a SeqFile and Oracle table without using HashFiles. Is there any way to do this.

Thanks,
Deep
amsh76
Charter Member
Charter Member
Posts: 118
Joined: Wed Mar 10, 2004 10:58 pm

Post by amsh76 »

Use OCI stage as look up..but with high volume it will hurt performance.
ranga1970
Participant
Posts: 141
Joined: Thu Nov 04, 2004 3:29 pm
Location: Hyderabad

Post by ranga1970 »

Why this
'without hash file' what way it is going to hurt you..
instead it will enhance your performance..

imagin situation, where you are trying to lookup 1million records and you are hitting databse 1 million times, where as you could have done it in single queery...
RRCHINTALA
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

For entire-key-based lookups a memory-cached hashed file will always be faster than an Oracle table. A disk-based hashed file is possibly still faster than an Oracle table, and definitely if the Oracle instance is on a separate machine from the DataStage server.

On the other hand, where you have a sparse lookup (only touching a few distinct values), then caching in the query engine may ensure that the database connection - particularly if local - may be quicker, as none of the non-referenced keys needs to be loaded (which would be the case if a hashed file were used).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply