473,413 Members | 1,778 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,413 software developers and data experts.

the database with many inserts vs less reads

Hello,

I need to implement a solution where db2 Workgroup v. 8.1 is used for
storing quite huge amount of data. The data will be rarely read and searched
and those operations do not need to be fast. In opposite many writes
(inserts , not updates) should work fast.

I am open for any suggestions on techniques and database configurations that
will be good for such a purpose. Any opinions are welcome !

sincerely Olek

Nov 12 '05 #1
3 1370
Hello Olek,

There are various non-database specific techniques like using less frequent
commits and large log buffer. One DB2 specific thing also helped us is
APPEND ON option in ALTER TABLE. DB2 will spend less resources looking for
space to insert rows.

--
Best regards, Dmitry Tolpeko
SQLWays - Data, Schema transfer for DB2, Oracle, SQL Server, Sybase,
Informix and MySQL
www.ispirer.com

"Smutny30" <sm******@poczta.onet.pl> wrote in message
news:cr**********@news.onet.pl...
Hello,

I need to implement a solution where db2 Workgroup v. 8.1 is used for
storing quite huge amount of data. The data will be rarely read and searched and those operations do not need to be fast. In opposite many writes
(inserts , not updates) should work fast.

I am open for any suggestions on techniques and database configurations that will be good for such a purpose. Any opinions are welcome !

sincerely Olek

Nov 12 '05 #2
Olek,

A little more info about your problem would be helpful.

For example, if the data doesn't need to be inserted real-time then the
solution may be pretty easy. Assuming hourly insertions:
- use loads to get 50,000 + events/second
- util-heap-sz large enough to allow load parallelism
- backup strategy could rely on zipped load files

If it has to be real-time, then you'll want:
- beefed up log buffers
- append on
- infrequent commits
- parameter markers
- and you may need a backup strategy - which could pose significant
performance impacts.
- may need to be careful with locking
- many more details could be found in a handy db2 doc I read this year.
But the db2 website has been continually improved to the point where I
can't find anything useful on it anymore.

In any event,
- pay attention to tablespace layout & pagesize: a 32k pagesize gives a
max tablespace of 512 GB. So, you may need to be careful about
multiple tables/ tablespace.
- indexes slow down insert performance
- MDC slows down insert performance
- union-all views slow down insert performance
- storage subsystem can certainly have a huge impact - raid5 would be a
bad choice here.

buck

Nov 12 '05 #3
Smutny30 wrote:
Hello,

I need to implement a solution where db2 Workgroup v. 8.1 is used for
storing quite huge amount of data. The data will be rarely read and searched
and those operations do not need to be fast. In opposite many writes
(inserts , not updates) should work fast.

I am open for any suggestions on techniques and database configurations that
will be good for such a purpose. Any opinions are welcome !

sincerely Olek

Olek,

this paper might help
http://www-106.ibm.com/developerwork...tml?ca=dnp-311

cheers
Florian
Nov 12 '05 #4

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

Similar topics

5
by: democratix | last post by:
Hi, I've only got a couple years experience developing for Access but have recently been experimenting with HTML/javascript for gui and client-side scripting, mysql for database and php for...
4
by: Christopher Brandsdal | last post by:
Hi! I have a delicatg problem.... I have made a registration form for adding my friends information in a database. The problem is that I want to connect the persons with companies in the same...
3
by: Viswanatha Thalakola | last post by:
Hello, Can someone point me to getting the total number of inserts and updates on a table over a period of time? I just want to measure the insert and update activity on the tables. Thanks....
6
by: teedilo | last post by:
We have an application with a SQL Server 2000 back end that is fairly database intensive -- lots of fairly frequent queries, inserts, updates -- the gamut. The application does not make use of...
6
by: Michael C | last post by:
I'm writing a program that, among other things, has to create and populate 7 tables on SQL Server. It reads in TAB delimited files, generates INSERT statements and executes them. So far I've been...
1
by: Brian Maguire | last post by:
Can too many btree indexes cause page level locking? I read this... http://www.postgresql.org/docs/7.4/static/locking-indexes.html
3
by: josh.kuo | last post by:
Sorry about the subject, I can't think of a better one. I recently wrote some PHP classes that I think might be of interest to this group. Since I have been reaping the benefits of reading news...
5
by: Marijn | last post by:
Hello everybody, I am new to PHP and working on extending my knowledge of OOP. The posts in this group concerned with whether or not to use an OO approach when programming in PHP is not what I...
4
by: Tommy Hayes | last post by:
Hello all, I want to use the SQL Server 2005 Tuning Advisor on our database, and I'm hoping someone here can just confirm the steps for me. We have a 10GB database that has a number of...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.