IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

CPU time for a query


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sidsengupta

New User


Joined: 16 Apr 2007
Posts: 1
Location: Chennai

PostPosted: Mon Apr 23, 2007 4:37 pm
Reply with quote

I am trying to come up with some usage vs cost metric for our DB2 Subsystems. In that regard, I am trying to find some industry benchmarks on running queries. Can anyone provide a ball-park figure for the CPU time taken to run a) Simple b) Medium c) Complex query?

Note:
Simple query: A select statement without where clause
Medium query: Contains where clause
Complex query: Contains joins
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Apr 24, 2007 8:34 am
Reply with quote

Hello,

I'd suggest that you reconsider your "grouping"s.

Rarely should there be a production query with no where clause - especially not online. Batch queries are often considered separately from online queries when performing performance analysis.

CPU time is only one measurement of cost.

A query that joins 3 tables efficiently to retriece 5 rows will take fewer DB2 cpu cycles than a single select that traverses 10 million rows - with or without a where.

Depending on the speed of your cpu(s), the type of dasd used, the number of rows, the length of the rows etc, what would be good "ball-park figures" will vary. You might talk with your IBM rep about a starting point for your environment.

As you begin, you will want to become familiar with the DB2 Statistics and Accounting records.

With some work, you will be able to report usage by various groupings. Assigning a $ cost to them will take much more work unless somone just invents amounts to use.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top