473,498 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

EXPLAIN - Influencing the Optimizer

DB2 UDB 7.2 on AIX5.2

I'm running (VISUAL) EXPLAIN from DB2 Control Center on various SQL
statements, but am restricted to using unrealistically small data
volumes. I've heard that it is possible to kid the EXPLAIN into
thinking it's dealing with much larger data volumes. Assuming that
this would be productive, can anyone tell me how I can do this?

Many thanks
Bruce.
Nov 12 '05 #1
3 2063
"Bruce Pullen" <br**********@hotmail.com> wrote in message
news:9d**************************@posting.google.c om...
DB2 UDB 7.2 on AIX5.2

I'm running (VISUAL) EXPLAIN from DB2 Control Center on various SQL
statements, but am restricted to using unrealistically small data
volumes. I've heard that it is possible to kid the EXPLAIN into
thinking it's dealing with much larger data volumes. Assuming that
this would be productive, can anyone tell me how I can do this?

Many thanks
Bruce.


You can update the statistics in the catalog. The most important in your
case is probably the card (number of rows) on the SYSCAT.TABLES.
Nov 12 '05 #2
http://publib.boulder.ibm.com/infoce...help/index.jsp
SEARCH : DB2LOOK

WIth the -m option (in combination with others), you should be able to work
it out.
Generate the DDL file, modify it, run it, explain again.

PM

"Bruce Pullen" <br**********@hotmail.com> a écrit dans le message de
news:9d**************************@posting.google.c om...
DB2 UDB 7.2 on AIX5.2

I'm running (VISUAL) EXPLAIN from DB2 Control Center on various SQL
statements, but am restricted to using unrealistically small data
volumes. I've heard that it is possible to kid the EXPLAIN into
thinking it's dealing with much larger data volumes. Assuming that
this would be productive, can anyone tell me how I can do this?

Many thanks
Bruce.

Nov 12 '05 #3
Thank you both for your help. Perfect!
Nov 12 '05 #4

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

Similar topics

9
4728
by: hemal | last post by:
I came across a very strange situation at work. There is an order of magnitude difference in execution time for the following two queries (10 v/s ~130 msec): select count(*) from table_name...
3
1997
by: Mark Harrison | last post by:
I have indexed two columns in a table. Can somebody explain to me why the first query below uses an Index Scan while the second uses a Seq Scan? Many TIA! Mark planb=# \d abcs Table...
3
2073
by: Peter Arrenbrecht | last post by:
Hi all We ran into a very annoying optimizer problem recently. We had added a new key and self-join relation to a large production table. That key will be filled very rarely and having just...
9
2785
by: Andrea | last post by:
Hi, I've read the former postings but was not able to solve my problem: I have a Summary Table (or MQT as you like it) and the query optimizer does not seem to use the summary table. I run...
2
1888
by: Dan Sugalski | last post by:
Is there any way to convince explain to go do its thing when given a query with placeholders in it? I'm trying to do some performance checking of some of the queries built into a system I'm...
2
3894
by: boa sema | last post by:
Way back when, and at least in version 7 IIRC, the query optimizer gave up when the where clause in a statement contained more than 4 search conditions. Does anyone know if such a limitation...
3
2357
by: aj | last post by:
DB2 LUW v8.2 FP 14 RHAS 2.1 Sorry if these are newbie questions. Optimizer stuff is black magic to me. For both of these, assume stats are current and an even distribution of data....
5
2670
by: jefftyzzer | last post by:
Friends: Anyone know how I can EXPLAIN a dynamic SQL statement that SELECTs from DGTT's in a stored procedure? I don't want to create permanent versions of the DGTTs and run an explain...
7
5769
by: skaushik | last post by:
Hi all, I was working on a SQL query where a history table is joined with a small table to get some information. There is an index on the history table column but the explain plan tells that there...
0
7125
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
7002
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
7165
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
7205
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
7379
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4910
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4590
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
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1419
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 ...

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.