Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 27 Jun 2012 @ 16:11:03 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: Explain Plan differences between Static and Dynamic SQL
 
From:   David Clough

I've taken the advise of Asifuddin in taking the trouble of generating Stats on the Work Table (just the Joining Columns), and I'm pleased to say that it's now working a treat !

I'm now getting a Hash Join, rather than the Product Join from before (i.e. with no Stats)

So, thanks for the pragmatic answer of, basically, whatever the reasoning behind it, just help out the Optimizer a bit and move on.

As it happens, it was at the back of my mind to write an enhancement to the Stored Procedure in doing this, so it was just the push that I needed !


Regards

David Clough
Database Designer



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023