overwrite query in OracleOCI stage-performance

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
vinsashi
Participant
Posts: 150
Joined: Mon Aug 20, 2007 4:52 am
Location: singapore

overwrite query in OracleOCI stage-performance

Post by vinsashi »

Hi,
I Have two tables .Daily i will get 0.1 million records.i have to join two tables with key column and i have to retrieve one column from other table.
i have overwrite query in oracle oci stage(i used join query itself) is inthis way good performance wise or using lookup performance good
which process better...

Thanks
v..
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

What do you mean by "overwrite query" ?

Doing the join in database is certainly faster than in DataStage - with few exceptions.
vinsashi
Participant
Posts: 150
Joined: Mon Aug 20, 2007 4:52 am
Location: singapore

Post by vinsashi »

Hi,

i have two tables transcation,product
TXN
txn_id
pd_id
rev

in product
pd_id
pd_nm

in output i want this target is hashfile
pd_id
txn_id
pd_nm
rev

procedure1:
i will write query it self in database stage
procedure2;
using transformer and source and refrence as tables(lookup in server )

In both which way better

Thanks
v...
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Reading using query join will be faster.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

For something like that, I doubt there will be any appreciable difference in the execution speeds. Use the hashed file reference methodology when the join isn't as dead simple as that one, for example when the table to be 'joined' resides in another database.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Moderator: please move to server forum
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