Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When diagnosing issues with long scan times, the following SQL can be useful in determining if there is a particular command that is taking a long time to execute. The output lists all commands executed and the average execution time

 


Code Block
languagesql
SELECT pa.Name as ProductAdapter, s.Name  as Strategy ,
label as CommandLabel, CommandText, avg(durationmilliseconds)/1000 as [Avg time (sec)] 
from [history].[t_CommandHistory] CH
join config.t_Strategy s on s.StrategyID=ch.StrategyID
join config.t_ProductAdapterConfiguration pa on pa.ProductAdapterConfigurationID=s.ProductAdapterConfigurationID
group by pa.Name , s.Name , label , CommandText
order by avg(durationmilliseconds) desc

 

...



Filter by label (Content by label)
showLabelsfalse
max5
spacesCSKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("sql","scanengine","history") and type = "page" and space = "CSKB"
labelsscanengine history sql

Page Properties
hiddentrue


 
Related issues