473,402 Members | 2,072 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,402 software developers and data experts.

DB2 Performance Issue

During the execution a sql query, DB2 generates a temporary file in
the temp table space which is over 6Gig. Does anyone know how to
reduce the size of this temporary file? It is possible to reduce its
size by tuning the database configurations?

T.C. Sheng
TC*****@SYSVIEW.COM.TW
Nov 12 '05 #1
3 2274
On Tue, 09 Dec 2003 03:09:17 -0800, T.C. Sheng wrote:
During the execution a sql query, DB2 generates a temporary file in
the temp table space which is over 6Gig. Does anyone know how to
reduce the size of this temporary file? It is possible to reduce its
size by tuning the database configurations?

T.C. Sheng
TC*****@SYSVIEW.COM.TW


More likely by tuning the database or rewriting the query.

But we'd need more info - suggest the query SQL and table and index
definitions from describe (the index ones with column details) and the
number of rows in the tables.

Phil
Nov 12 '05 #2
AK
T.C. Sheng,

if you post DDL, the query and the plan, you might get some useful advice.
This could be a cross join, for example.
Nov 12 '05 #3
Philip Nelson <gu*****@yahoo.co.uk> wrote in message news:<pa****************************@yahoo.co.uk>. ..
On Tue, 09 Dec 2003 03:09:17 -0800, T.C. Sheng wrote:
During the execution a sql query, DB2 generates a temporary file in
the temp table space which is over 6Gig. Does anyone know how to
reduce the size of this temporary file? It is possible to reduce its
size by tuning the database configurations?

T.C. Sheng
TC*****@SYSVIEW.COM.TW


More likely by tuning the database or rewriting the query.

But we'd need more info - suggest the query SQL and table and index
definitions from describe (the index ones with column details) and the
number of rows in the tables.

Phil


This query joins four tables in which three of these tables contain
2.5 million rows and the fourth has 12 million rows. Each table has
only one index base on a single primary key column. Actually, this
query is not complex in any sense, just the result is very large. I
was told that by increase the sort heap might help reduce the size of
the temp file. But, I am not sure how to determine a the sort heap
size "scientifically"
Nov 12 '05 #4

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

Similar topics

3
by: Paul Mateer | last post by:
Hi, I have been running some queries against a table in a my database and have noted an odd (at least it seems odd to me) performance issue. The table has approximately 5 million rows and...
10
by: **ham | last post by:
I know that's an old dirty issue; GDI+ almost -the slowest part of the framework - has bothered many developers using it in animations. Even in managed C++ the performance is awful. Now, any dude...
115
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical...
13
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance...
7
by: James | last post by:
Hi Has anybody had any experience of ASP.Net performance counters not updating. In the performance monitor application when I try to add the groups ASP.NET and ASP.NET Applications the...
17
by: 57R4N63R | last post by:
I'm currently building a website for one of the client. There has been few errors here and there, but just recently the problem is getting worse. Basically the symptoms is that when the user try...
4
by: Steph | last post by:
Hi - Trying to chase down a baffling performance issue. Our database has been running very slow lately. So we are performance tuning the database. In doing so, we created a copy of our...
2
by: Brian Tabios | last post by:
Hello Everyone, I have a very complex performance issue with our production database. Here's the scenario. We have a production webserver server and a development web server. Both are running...
2
by: BTabios | last post by:
Hello Everyone, I have a very complex performance issue with our production database. Here's the scenario. We have a production webserver server and a development web server. Both are running...
5
by: Varangian | last post by:
Hi, I have a performance issue question? which is best (in terms of efficiency and performance, I don't care neatness in code)... building an ArrayList of Object Instances using SqlDataReader...
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
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
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...
0
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...
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
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...

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.