Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 15 Nov 2005 @ 18:28:00 GMT


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


Subj:   Re: Diagnostic Lookahead
 
From:   Anomy Anom

<-- Anonymously Posted: Tuesday, November 15, 2005 10:58 -->

The correct syntax is

     diagnostic "lookahead=1" on for session;

substitute 5 in place of 1, if you need to force 5-lookahead. As you might be aware, optimizer first tries 1-lookahead, 5-lookahead and the large table/small table join optimization. At some point of the 5-lookahead plan, if it finds, that it is costlier than 1-lookahead, it basically aborts this 5-lookahead. In such cases, to force this plan, we use this diagnostic. This diagnostic is more of an internal use for trying different joinplans. More information on the lookahead plans can be found in SQL reference, Statement and Transaction processing.



     
  <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