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 » Environment variable vs row variable

Post new topic  Reply to topic
 Environment variable vs row variable « View previous topic :: View next topic » 
Author Message
ravilegolas
PostPosted: Wed Nov 21, 2012 1:50 pm    Post subject: Environment variable vs row variable Reply with quote

Novice

Joined: 04 Sep 2012
Posts: 15

Hi all,
Could anyone please throw some light on the performance of environment variable vs row variable when used in a message flow having only one compute node. I have a table with look up values. Is it wise to store in environment variable or row variable.
Back to top
View user's profile Send private message
marko.pitkanen
PostPosted: Wed Nov 21, 2012 10:12 pm    Post subject: Reply with quote

Chevalier

Joined: 23 Jul 2008
Posts: 440
Location: Jamsa, Finland

Hi,

In theory performance should be about the same because if I have understood it correctly Environment & other trees are instances of the ROW data structure / variable.

Quote:
InputRoot, OutputRoot, and so on, are examples of ROW variables that are automatically declared and present in the data structure, ready for use.


But perhaps you can do some testing and give us the results?

--
Marko
Back to top
View user's profile Send private message Visit poster's website
mqsiuser
PostPosted: Thu Nov 22, 2012 1:39 am    Post subject: Re: Environment variable vs row variable Reply with quote

Yatiri

Joined: 15 Apr 2008
Posts: 637
Location: Germany

ravilegolas wrote:
Is it wise to store in environment variable or row variable.


I use the Envrionment, LocalEnvironment, (InputRoot and OutputRoot) and SHARED ROWS for their respective use cases.

LocalEnv: Only one (ESQL) Compute Node
Environment: Whole Flow (multiple nodes)
SHARED ROW: Multiple Flow Invocations

If others have other practices, please share.
_________________
Just use REFERENCEs
Back to top
View user's profile Send private message
Esa
PostPosted: Thu Nov 22, 2012 1:47 am    Post subject: Re: Environment variable vs row variable Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

mqsiuser wrote:

LocalEnv: Only one (ESQL) Compute Node


This has nothing to do with the OP's question, but this is not exactly correctly put. I would rather say that LocalEnv is used for communicating data between nodes with limited scope and lifetime. In other words, you use it when you want to have tighter control on data propagation or memory consumption, for example.

And what comes to the OP's question, the main difference between using LocalEnvironment and ROW variables is that ROW variables are not propagated, so they have more limited lifetime. So, for usage within one node only, a ROW variable might give a (very) slightly better performance. Of course, the effect is neglible if your flow only has one processing node.
Back to top
View user's profile Send private message
ravilegolas
PostPosted: Thu Nov 22, 2012 5:22 am    Post subject: Reply with quote

Novice

Joined: 04 Sep 2012
Posts: 15

Thanks a lot everyone for your views.. I will try both in my esql and let you know my findings
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 » Environment variable vs row variable
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.