473,387 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

db2 get snapshot for dynamic sql output question

aj
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
Aug 13 '08 #1
1 5655
On Aug 13, 5:50 am, aj <ron...@mcdonalds.comwrote:
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
Aug 13 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jason Tesser | last post by:
I work for at a college where I am one of 2 full-time developers and we are looking to program a new software package fro the campus. This is a huge project as it will include everything from...
2
by: mEmENT0m0RI | last post by:
Spent couple of hours trying to figure out this issue. How can I pass a parameter in dynamic SQL? Here is a simplified example: CREATE PROCEDURE dbo.spTest @LastName varchar(25) AS ...
3
by: leileili | last post by:
Hello, Hello, I'm new in dynamic SQL query and I have a problem need help. For example: I have a SQL query like this: select hw.family,hw.id where hw.id="1234567"; and I have a txt file...
3
by: harry | last post by:
Posted this here as it's more (I think?) javascript related than html. I have a page that when a user clicks on a button a row is dynamivcally added using js to an html table i.e something like -...
3
by: William Stacey | last post by:
Say I have a multi-line text box on a form and "Run" botton. I want to type a class with fields and methods into the text box and try to instanciate it and run a method on the class and maybe even...
1
by: jm | last post by:
I am using (trying) dynamic properties to store a database connection. However, I don't have a connection object on the form. I just do a OdbcConnection in my code. So I can't use the VS IDE to...
1
by: Chris Ochs | last post by:
I read the docs but I'm still a little lost as to how to do this. I have this function which works fine. CREATE OR REPLACE FUNCTION lookup_customer_byemail(varchar) RETURNS SETOF customer_rec...
2
by: Patrick Hatcher | last post by:
I have the following SQL with explain Should I be concerned with the merge cond: Merge Cond: (("outer".masked_acct_id)::text = "inner"."?column5?")? I have no idea what column5 is or the same...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.