Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 28 Jul 2005 @ 14:12:02 GMT


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


Subj:   Re: High CPU and low I/O
 
From:   Diehl, Robert

To find the specific culprit, turn on query logging for the id. You can then run a query to find the culprit. Something like the query below will work (remove aggregation if you want be individual query.

     select lg.querytext,
     count(*) as requests,
     sum(lg.totalcputime)
       from   dbc.QryLog lg
     join DBC.userdb usr
     on lg.UserId = usr.Id
      where cast(lg.startTime as date) = date
         and Name = 'username'
     group by 1
      order by 3 desc

Thanks,

Bob Diehl



     
  <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