If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 7.2.8 need statistics/benchmark

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-07-05, 10:07
jmdelsaux jmdelsaux is offline
Registered User
 
Join Date: Feb 2005
Posts: 3
DB2 7.2.8 need statistics/benchmark

Hi,

I have a UDB DB2 7.2.8 on a Xeon 2.4 GHz/3G ram MS Win 2003 and i try to do mass insert from a java client using jdbc. Each INSERT is about 60kb.

What is the number of INSERT can i expect to have with that kind of configuration? I run the wizard to configure the db to turn it to mass insert.

Now, i have about 100 insert/sec when i commit each 1000 INSERT.

In fact, i have to INSERT about 100.000 rows in less than 10 min.

What can i do to increase the number of insert ?

Thanks

JMi
Reply With Quote
  #2 (permalink)  
Old 02-07-05, 10:23
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
This is what I recommend

1. Turn append on for table.

alter table <table_name> append on.

2. If your table is created with not logged

then turn it on

alter table <table_name> activate not logged initially.

Please make a backup of the table after mass insert.

3. If possible take lock at the table level

alter table <table_name> locktype table.

drop any indexes and rebuilt after the mass insert.

If possible use load utillity.

Parameter tuning also needs to be tuned.

regards

Mujeeb
Reply With Quote
  #3 (permalink)  
Old 02-07-05, 11:08
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
This developerworks article should help

http://www-128.ibm.com/developerwork...m-0403wilkins/
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 02-09-05, 05:46
jmdelsaux jmdelsaux is offline
Registered User
 
Join Date: Feb 2005
Posts: 3
Finally found a solution.

I put the stored procedure to the garbage and i used PreparedStatement, it works quicker now.

Now, i have 375 row/sec. (Windows 2003, Xeon bi-pro 3 GHz and 3G of ram), row of 70 bytes.

JMi
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On