473,473 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to get the Optimization level?

We use DB2-LUW-8.2.

I am doing some research on performance issues and I read about the
"OPTIMIZATION LEVELS' and their impacts on Joins.

How do I get the Optimization level implemented here? Can I query some
system tables? Can someone help me pls ?

Jun 11 '07 #1
4 9314
sp*********@gmail.com wrote:
We use DB2-LUW-8.2.

I am doing some research on performance issues and I read about the
"OPTIMIZATION LEVELS' and their impacts on Joins.

How do I get the Optimization level implemented here? Can I query some
system tables? Can someone help me pls ?
Read the online documentation available at:

http://publib.boulder.ibm.com/infoce...w/v8/index.jsp

You may want to search for CURRENT QUERY OPTIMIZATION term. Note that
default optimization level is part of Database configuration (DFT_QUERYOPT).
Jan M. Nelken
Jun 11 '07 #2
On Jun 11, 11:10 am, speciald...@gmail.com wrote:
We use DB2-LUW-8.2.

I am doing some research on performance issues and I read about the
"OPTIMIZATION LEVELS' and their impacts on Joins.

How do I get the Optimization level implemented here? Can I query some
system tables? Can someone help me pls ?
To see the current level for your session:

VALUES CURRENT QUERY OPTIMIZATION

To set it:

SET CURRENT QUERY OPTIMIZATION n

If you want to look at the bound value for existing packages, query
the QUERYOPT column of SYSCAT.PACKAGES

--Jeff

Jun 11 '07 #3
Ian
sp*********@gmail.com wrote:
We use DB2-LUW-8.2.

I am doing some research on performance issues and I read about the
"OPTIMIZATION LEVELS' and their impacts on Joins.

How do I get the Optimization level implemented here? Can I query some
system tables? Can someone help me pls ?
You can get the CURRENT QUERY OPTIMIZATION special register:

VALUES(CURRENT QUERY OPTIMIZATION)

The default value assigned to a new connection to a database is
determined by the database configuration parameter (DFT_QUERYOPT).

Jun 11 '07 #4
On Jun 11, 12:33 pm, Ian <ianb...@mobileaudio.comwrote:
speciald...@gmail.com wrote:
We use DB2-LUW-8.2.
I am doing some research on performance issues and I read about the
"OPTIMIZATION LEVELS' and their impacts on Joins.
How do I get the Optimization level implemented here? Can I query some
system tables? Can someone help me pls ?

You can get the CURRENT QUERY OPTIMIZATION special register:

VALUES(CURRENT QUERY OPTIMIZATION)

The default value assigned to a new connection to a database is
determined by the database configuration parameter (DFT_QUERYOPT).
Thanks - all of you - for your help. I appreciate it.

Jun 13 '07 #5

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

Similar topics

1
by: Makis Papapanagiotou | last post by:
Hello, At the moment I am trying to optimize a certain part of a code. The strange thing is that I am getting an internal compiler error. What I don't know at the moment is whether this a bug of...
5
by: AC Slater | last post by:
Whats the simplest way to change a single stored procedures query optimization level? In UDB8 that is. /F
5
by: Praveen_db2 | last post by:
Dear All Db2 version: 8.1 OS: Windows I have 2 questions: 1) What is the optimizer which db2 uses, rule based or cost based? If any one can clear out the difference between the two it will be...
1
by: Will Ware | last post by:
I am trying to build a Pyrex module on Mac OS X version 10.3.9 (don't know which big cat that is). It already builds fine on Mandrake Linux and Windows XP. I have one source file where gcc hangs if...
3
by: Abhishek | last post by:
Recently i found that my C++ program was running fine with no optimization and giving segmentation fault with error code 139 when compiled with optimization level 2. I searched somewhat but never...
206
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a...
7
by: db2admin | last post by:
hello, where can i see what optimization level a certain sql has used ? is there any snapshot, event monitor, query patroller information which can be used to see that ? regards, db2admin
2
by: db2admin | last post by:
hi, I have query which runs great when optimization level is changed to 3 but does not run fine with default optimization level of 5. since this is a query in java code, i do not know how can i...
20
by: Ravikiran | last post by:
Hi Friends, I wanted know about whatt is ment by zero optimization and sign optimization and its differences.... Thank you...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.