Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 13 Feb 2003 @ 00:20:23 GMT


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


Subj:   Re: Question on why Aggregate Join Index Not Being Used
 
From:   Claybourne L. Barrineau

Carl,

First thing, try running an Explain on the DML (less the 'CREATE JOIN INDEX JoinIndex1 ,NO FALLBACK AS' part) used to create the AJI. Verify that the Optimizer uses your AJI to resolve this query (it should.)

Second thing, try adding secondary indexes (or at least collect some stats) on the columns from the AJI that you are filtering on. It seems that the optimizer (given the information that it has) believes that actually joining these tables together is better than using the AJI.

Third, the 5 step of your explain plan show a filter of ' ("(DatabaseName.Table1.Column12 = 701)); however, you SQL shows ' Table1.Column12 = 999'. Is this just a typo?


Thanks,

Clay Barrineau



     
  <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