Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 26 Apr 2006 @ 22:04:27 GMT


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


Subj:   Re: How good is Explain on a SQL ?
 
From:   Frank.C.Martinez

Whoa, wait, the "estimated time" is actually an estimated cost, based on all kinds of things, but NOT related to actual CPU time, or wall-clock time or anything. Well, ok, maybe some statistics from a machine that existed at some time in Dayton somewhere.

It's what the optimizer calculates and uses to compare different versions of a plan. So yeah, the confidence level would affect which plan, because the optimizer tries to pick not the best plan, but the least hazardous. But if it ever turned out that the estimated time did actually MATCH the actual time, it still would be affected by the load on the box, 'cause the estimate is for the query running on an empty box.

So use it for what it's designed for, comparing plans!


iv



     
  <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