Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / April 2006

Tip: Looking for answers? Try searching our database.

Should db2 summarize or home grow a build app in C

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mmiikkee@att.net - 07 Apr 2006 20:13 GMT
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.
Ian - 10 Apr 2006 03:23 GMT
> 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
[quoted text clipped - 8 lines]
> 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.
mmiikkee@att.net - 10 Apr 2006 15:47 GMT
Thanks Ian, I'll take your advice.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.