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 > Insert multiple rows in db2 table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-10, 11:06
fabiolap fabiolap is offline
Registered User
 
Join Date: Jan 2010
Posts: 1
Insert multiple rows in db2 table

Hi
I have this situation I get 200 records of a web service and I had to save them in a table, in this moment I take record to record and execute a call procedure por each one, but this operation take too much time, 3 or 4 seconds, for mi aplication this time is fatallity, how can do to better this operation???

thaks in advance
Reply With Quote
  #2 (permalink)  
Old 01-27-10, 12:51
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
If you have business logic in the stored procedure you are calling, then you are probably out of luck. If not, you can insert multiple rows using one INSERT statement.

Andy
Reply With Quote
  #3 (permalink)  
Old 01-27-10, 13:11
MarkhamDBA MarkhamDBA is offline
Registered User
 
Join Date: Dec 2008
Location: Toronto, Canada
Posts: 381
you might want to try to use LOAD or IMPORT
__________________
DB2 v9.5 ESE on AIX v6.1/ v9./10 on z/OS
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