All Forums Third Party Software
15 Feb 2005
Teradata and Ascential Data Stage

Hi,Following is the background of the problem and my questions:Problem Background:I have a SELECT query that takes 16sec to return the answer set using Queryman or BTEQ. The optimizer chooses a plan that has 5 or 6 steps.When I run the same SELECT query through Ascential Data Stage tool, the optimizer chooses a plan that has 9 steps, which is different from the one when EXPLAINed using Queryman. The query takes forever to return the answer set.I collected stats on the join columns and the query run using Queryman took 10min to return the answer set.Questions:1. Did anybody experiened similar problem when using Teradata with ETL tools like Ascential Data Stage, Informatica?2. Is there a way to make the query to perform at its best(16sec elapse time to return answer set) in Data Stage tool?Thanks,Raj

Phani 15 posts Joined 07/04
25 Jan 2006

My suggestion is to check the query submitted to the database. We may not see the exact query that is submitted via BTEQ. Some times these tools generate data mismatch conditions. Due to this optimizer might generate different plans.

trojancjs 17 posts Joined 03/07
12 Mar 2007

I know that the Teradata API stage connects sessions in ANSI mode, so I like to do all of my SQL Assistant vs DataStage performance testing in ANSI mode sessions.Do you have Query Logging enabled at the request level for the user that is submitting the query? If you can briefly turn on SQL & STEPINFO logging for the user, you can verify with accuracy that Teradata is executing different plans for exactly the same query.

You must sign in to leave a comment.