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 » How to get join value using Global cache

Post new topic  Reply to topic
 How to get join value using Global cache « View previous topic :: View next topic » 
Author Message
bhaski
PostPosted: Wed Feb 19, 2014 8:32 am    Post subject: How to get join value using Global cache Reply with quote

Voyager

Joined: 13 Sep 2006
Posts: 78
Location: USA

Hi Friend...

New to Global Cache..

How to get the common data by comparing two Global Map in Global Cache? and store them into Environment.Variables.mydate[] or any array in ESQL? Other than Java Util classes? if I do, which is good on performance vice.. Storing data in SHARED ROW or Global Case

MY situation is:
I have to get the data between comon arrays between two ROWS. How can I do that in MbGlobalMap?
_________________
Thanks and Regards
Bhaski
Websphere MQ Admin Certified
Websphere WMB Admin certified
Back to top
View user's profile Send private message
iShakir
PostPosted: Wed Feb 19, 2014 8:54 am    Post subject: Reply with quote

Apprentice

Joined: 07 Mar 2013
Posts: 47

Here is the link to the MbGlobalMap documentation:

http://pic.dhe.ibm.com/infocenter/wmbhelp/v9r0m0/index.jsp?topic=%2Fcom.ibm.etools.mft.plugin.doc%2Fcom%2Fibm%2Fbroker%2Fplugin%2FMbGlobalMap.html

There's no "get all" method. Everything requires a key (put, get, update, delete), and you can only check that a key is in the map, you can't get a set of keys. The Global Cache doesn't seem to make sense with your use case, because unless you have prior knowledge of all the keys in each map you won't be able to do a compare.
Back to top
View user's profile Send private message
bhaski
PostPosted: Wed Feb 19, 2014 9:26 am    Post subject: Reply with quote

Voyager

Joined: 13 Sep 2006
Posts: 78
Location: USA

Is it possible with Websphere Xtream Scale? Since I dont know WXtream Scale.
_________________
Thanks and Regards
Bhaski
Websphere MQ Admin Certified
Websphere WMB Admin certified
Back to top
View user's profile Send private message
iShakir
PostPosted: Thu Feb 20, 2014 1:40 am    Post subject: Reply with quote

Apprentice

Joined: 07 Mar 2013
Posts: 47

bhaski wrote:
Is it possible with Websphere Xtream Scale? Since I dont know WXtream Scale.


If you're using Websphere eXtreme Scale either internally (Global Cache) or externally then the MbGlobalMap object is the supported interface to that grid, and its maps. Otherwise your on your own with your own client code, and I don't know enough about that to really advise.

As I said before, if you know all the possible keys that you're storing your data with, then you can do a block compare by iterating over the keys and using the
Code:
MbGlobalMap.containsKey(Object)
and
Code:
MbGlobalMap.get(Object)
methods to determine whether the data is exactly the same. This is highly likely to have poor performance.

What is this data, and why does it need to be cached? If it needs to be shared across flows you have a few other options, ESQL shared as an example, I would consider looking into these.
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu Feb 20, 2014 3:29 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

What problem are you trying to solve? It sounds as if there might be an easier solution.
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
bhaski
PostPosted: Thu Feb 20, 2014 8:40 am    Post subject: Reply with quote

Voyager

Joined: 13 Sep 2006
Posts: 78
Location: USA

Thank you guys.. We have the situation like this.. We have some configuration data in WMB 6.1. Since it was with DB2.. all the configuration was stored in DB2 now.. Cos of this configuration, not willing to go with Database. So planning for alternative.. Converted them into Queue and getting data at first time and moving them into cache memory ( move them into ROW SHARED ). Since I need to read them from Queue,

start read ----> to to MQGET - Moving them to ROW Shared ( 5 times ) since we have 5 different configuration for first message

second time onwards.. it will check cache is null or not and go to the process.. But I am facing a bit poor performance than Database... planning how to come out and improve the performance. That is why asking about Global Cache in case to improve them.. cos the input configuration update is coming as a flat file delimit.
_________________
Thanks and Regards
Bhaski
Websphere MQ Admin Certified
Websphere WMB Admin certified
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Feb 20, 2014 9:26 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

I presume you mean browse the queue to copy the config data to the shared variables, if the cache is empty.

I don't see why that should have poor performance, providing you check the shared variables first and only access the queue when necessary.

Make sure you are really using shared variables (i.e. EXTERNAL char).
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to get join value using Global cache
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.