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 » WMB Database hit - Performance issue

Post new topic  Reply to topic
 WMB Database hit - Performance issue « View previous topic :: View next topic » 
Author Message
deepak_paul
PostPosted: Tue Dec 22, 2009 9:13 pm    Post subject: WMB Database hit - Performance issue Reply with quote

Centurion

Joined: 04 Oct 2008
Posts: 147
Location: US

All

We have an WMB requirement that we need to look up to DB2 database and get data(around 15 select queries) from the database. We are allowed to have less than 3 seconds to complete the whole transaction of retrieving data from database and formatting them(COBOL to XML) then sending to downstream system. As it is a code look up and maintenance of the database is not done quite often(probably no updates/inserts once loaded), we plan to save some mill seconds by avoiding the hit of database for each transaction, instead, possibly store the required look up data from database in to some local area or some other way in order to get retrieved quickly.

[This should be accessible by all message flows/instances in an execution group]

There are possible ways to approach this.
1. Call Java programs which can first time connect to the database and retrieve and dump the data into java hash maps then second time onwards no database hit but data is taken java hash maps.
2. Using MQ get node. Store the database data into a Q.
3. Using Shared Variables
4. Using ROW or LIST data type

Could you please advise me which would be best way to go ahead with. And also if there are a lot better other ways to do this, please let me know.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Dec 22, 2009 9:25 pm    Post subject: Reply with quote

Grand High Poobah

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

May be this will give you some ideas:

We use WII to detect changes to the DB and build in the DB a "cache" for a specific query. We then retrieve the specific row of the cache via a request/reply type query using MQ and CICS triggered transaction.
Turn around for the request/reply message is around 125 ms avg including Cobol to XML transformation.

This would of course depend on your network and the size of the messages.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
deepak_paul
PostPosted: Wed Dec 23, 2009 1:36 am    Post subject: Reply with quote

Centurion

Joined: 04 Oct 2008
Posts: 147
Location: US

Thanks for your reply, fjb_saper.

Could you please elaborate your ideas so as to make that as a possible solution for my issue?

1. First off, What is WII? How it detects changes in teh DB[maybe the answer to the first question can avoid second question]

2. You meant building a cache in the DB itself. If, how we do build so? While retrieving data from DB cache, will this make a greater difference when the DB is comparively small.

Please elaborate your answer.
Back to top
View user's profile Send private message
sirsi
PostPosted: Wed Dec 23, 2009 6:40 am    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

Quote:
retrieve the specific row of the cache via a request/reply type query using MQ and CICS triggered transaction.


if the query size is less probably using shared variables is the best option.
but u need to have some logic to retrive updated data from db...
Back to top
View user's profile Send private message
deepeshk79
PostPosted: Fri Dec 25, 2009 11:54 am    Post subject: Reply with quote

Apprentice

Joined: 25 Mar 2007
Posts: 45
Location: Los Angeles

If you have WMB 6.0 and above then one of the good options here seems to be defining ROW Shared Variables

DECLARE rowsharedvariable[] ROW SHARED ROW[Select R.a1, R.a2 from Table1 As R]

The rowsharedvariable[] can be either at node level (within module) or at a flow level (within schema)

-- Deepesh
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » WMB Database hit - Performance issue
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.