ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Multiple Row Inserts using Compute or Database Node

Post new topic  Reply to topic
 Multiple Row Inserts using Compute or Database Node « View previous topic :: View next topic » 
Author Message
satya2481
PostPosted: Sat Sep 20, 2014 4:54 pm    Post subject: Multiple Row Inserts using Compute or Database Node Reply with quote

Disciple

Joined: 26 Apr 2007
Posts: 170
Location: Bengaluru

Hi All,
We are having a requirement to speed up the Insert process, hence need to insert multiple rows in the database at a time. Below I am providing the details. Can anyone suggest how to achieve this.
Environment Details
WebSphere Message Broker - V7 - zLinux
DB2 Databse - V10.1 - z/OS

Message Flow
MQInput Node -> Compute Node
MQInput Node -> Receives XML Message with data to be inserted in the table
Compute Node -> Receives the data and inserts it into a Audit table

We are planning to modify this flow to collect 10-20 input messages in cache and then do a bulk insert into the table.
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Sun Sep 21, 2014 12:14 am    Post subject: Re: Multiple Row Inserts using Compute or Database Node Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

satya2481 wrote:
Hi All,
We are having a requirement to speed up the Insert process, hence need to insert multiple rows in the database at a time. Below I am providing the details. Can anyone suggest how to achieve this.
Environment Details
WebSphere Message Broker - V7 - zLinux
DB2 Databse - V10.1 - z/OS

Message Flow
MQInput Node -> Compute Node
MQInput Node -> Receives XML Message with data to be inserted in the table
Compute Node -> Receives the data and inserts it into a Audit table

We are planning to modify this flow to collect 10-20 input messages in cache and then do a bulk insert into the table.


Change your design. Handle one message at a time and change the commit load of the flow. This way you can set commit load of 100 for example...

Of course you are using a prepared statement for the insert, right?

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
satya2481
PostPosted: Thu Sep 25, 2014 3:06 pm    Post subject: Reply with quote

Disciple

Joined: 26 Apr 2007
Posts: 170
Location: Bengaluru

Quote:
prepared statement for the insert, right?


Could you please share some more information on this? We are using Passthru function and passing the INSERT query.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Multiple Row Inserts using Compute or Database Node
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.