Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 13th, 2008, 01:55 PM
aj
Guest
 
Posts: n/a
Default db2 get snapshot for dynamic sql output question

DB2 LUW 8.1 FP14
RedHat AS

In "db2 get snapshot for dynamic sql" output I see (amongst other
things):

Number of executions = 235
Number of compilations = 1
Worst preparation time (ms) = 4
Best preparation time (ms) = 4
....
Total execution time (sec.ms) = 12.540242
Total user cpu time (sec.ms) = 11.250000
Total system cpu time (sec.ms) = 0.500000
Statement text = select dchart from charts where
custom = 'N' and ( (chart_prefix like ?) )

So what I'm seeing here is a parameterized SQL statement that has been
executed 235 times.

My question is about the Total execution time, 12.54 seconds.

This means that this SQL was executed 235 times in 12.54 seconds?
12.54 / 235 = .053

Each execution took, on average, .053 seconds? Five hundredths of a
second? Am I interpreting this correctly?

TIA

aj
  #2  
Old August 13th, 2008, 06:06 PM
jefftyzzer
Guest
 
Posts: n/a
Default Re: db2 get snapshot for dynamic sql output question

On Aug 13, 5:50 am, aj <ron...@mcdonalds.comwrote:
Quote:
DB2 LUW 8.1 FP14
RedHat AS
>
In "db2 get snapshot for dynamic sql" output I see (amongst other
things):
>
Number of executions = 235
Number of compilations = 1
Worst preparation time (ms) = 4
Best preparation time (ms) = 4
....
Total execution time (sec.ms) = 12.540242
Total user cpu time (sec.ms) = 11.250000
Total system cpu time (sec.ms) = 0.500000
Statement text = select dchart from charts where
custom = 'N' and ( (chart_prefix like ?) )
>
So what I'm seeing here is a parameterized SQL statement that has been
executed 235 times.
>
My question is about the Total execution time, 12.54 seconds.
>
This means that this SQL was executed 235 times in 12.54 seconds?
12.54 / 235 = .053
>
Each execution took, on average, .053 seconds? Five hundredths of a
second? Am I interpreting this correctly?
>
TIA
>
aj
Yes, that is the correct interpretation.

--Jeff
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles