using hint in OCI stage

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
ayan
Participant
Posts: 64
Joined: Fri Oct 23, 2009 4:09 am

using hint in OCI stage

Post by ayan »

Hi,

Can we use hints in SQL query in OCI stage? If I specify a parallel hint for a select query (which does a full table scan),will datastage read faster?

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

Post by Sainath.Srinivasan »

Queries are passed to your RDBMS as they are mentioned. So the speed of the query is not relevant to DataStage by your Database.

From DataStage, you can configure your array fetch size to use returned data and memory efficiently.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

To put that another way, DataStage itself does not use hints. So whether hints will make anything faster depends solely on whatever impact the hints will have in the database.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So yes, and it's all about Oracle not DataStage. Also note there's no need for custom SQL simply for this, I put the hint as part of the derivation of the first field and then the SQL will be generated all proper like, hint and all.
-craig

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