473,387 Members | 1,742 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.

Should db2 summarize or home grow a build app in C

I have a large (perhaps small) table (foo) of 48 Million rows and I
have a temp table which I load with keys (2 to 3 Mil). I use the temp
table to extract and aggregate some columns from foo (basically by a
transaction date) that I then insert into a summary table. Now foo
might hold 10 rows to aggregate but the majority of the time (90%) the
sum extracts a single row. Thus the inserts usually match the temp row
count. The temp row length is 110 bytes but the keys are < 20 bytes.
Foo rows are 310 bytes. This is a udb2 on 40 processors. I'm sure
much larger summations are performed in business. Is it unreasonable
to have the engine do this type of work? The reason is I seem to be
getting an sql955. My feeling is this should not be a big deal.
Thanks for any comments.

Apr 7 '06 #1
2 1207
Ian
mm******@att.net wrote:
I have a large (perhaps small) table (foo) of 48 Million rows and I
have a temp table which I load with keys (2 to 3 Mil). I use the temp
table to extract and aggregate some columns from foo (basically by a
transaction date) that I then insert into a summary table. Now foo
might hold 10 rows to aggregate but the majority of the time (90%) the
sum extracts a single row. Thus the inserts usually match the temp row
count. The temp row length is 110 bytes but the keys are < 20 bytes.
Foo rows are 310 bytes. This is a udb2 on 40 processors. I'm sure
much larger summations are performed in business. Is it unreasonable
to have the engine do this type of work? The reason is I seem to be
getting an sql955. My feeling is this should not be a big deal.
Thanks for any comments.


This is not an unreasonable task for DB2 to perform!

However, you should work with your DBAs to configure the sort
memory allocations properly. If you're getting SQL0955N errors,
the memory allocation has probably not been configured properly
for your environment / application.

Apr 10 '06 #2
Thanks Ian, I'll take your advice.

Apr 10 '06 #3

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

Similar topics

3
by: Jean-Christian Imbeault | last post by:
I have a user account on a RH Linux machine but no root access. I succesfully installed apache 1.3 under my /home/ account but can't get PHP to install properly. I have done the following...
2
by: Stewart | last post by:
Originally posted in comp.lang.javascript: Newsgroups: comp.lang.javascript From: "Stewart" Date: 23 Aug 2005 02:50:04 -0700 Local: Tues, Aug 23 2005 10:50 am Subject: FireFox, RemoveChild,...
3
by: pmud | last post by:
Hi, I have a web page (asp.net, code:c#). I havean html table with text boxes. Based on the user input , records are displayed in the data grid below it. Now the datagrid has a large no. of...
1
by: welles.lo | last post by:
Hi all, I found that the default "can grow" in Crystal Reports 10 is different from the one in Crystal Report 9. In version 9, when "can grow" is disable, the words in the field are chopped...
24
by: John | last post by:
I know this is a very fundamental question. I am still quite confused if the program call stack stack should always grows upwards from the bottom, or the opposite, or doesn't matter?? That means...
1
by: wrldruler | last post by:
Hello, I have a calendar report which uses 30 copies of a sub-report to build each day. Working just fine except: Let's say January 16th, there are 2 items to be listed for that date and the...
3
beacon
by: beacon | last post by:
Hey everybody, I'm using 2003 and wondering if there's a way to count the data for multiple sections in a report and summarize it at the end of the section. For instance, I have a report with a...
4
by: Ramon F Herrera | last post by:
I am writing a program that generates source code. See a snippet below. My question is about the use of that growing 'code' variable. Is it efficient? Is is recommended for this case? The code...
28
by: RMZ | last post by:
This may come across as a trolling message, it's not ment to be. It's intended to share a recent experience I had with Mac OS in an entertaining way. I'm doing this because I love technology in...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.