Poor performance - DS Marco in column derivation with Oracle

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
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Poor performance - DS Marco in column derivation with Oracle

Post by roy »

Hi All,
DS 8.5 on windows.

I came across an odd situation where I have a transformer link performing an insert to oracle, has verry poor performance, several rows per second.
This happens if I use a DS macro such as : DSHostName as the derivation for a column.

Work arounds include:
1. using a stage variable to encapsulate the macro and putting the stage variable in the column derivation.
2. passing the desirved value as a job parameter.

In those cases the job works like a charm
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not sure I consider that a 'workaround' but rather proper usage. :wink: :wink:

Specifically for #1, put the macro in the Initial Value of the stage variable and then leave its derivation empty. It will only be evaluated once (the performance hit) when the job starts and then simply used for every row after that.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply