|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Environment variable vs row variable |
« View previous topic :: View next topic » |
Author |
Message
|
ravilegolas |
Posted: Wed Nov 21, 2012 1:50 pm Post subject: Environment variable vs row variable |
|
|
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 |
|
 |
marko.pitkanen |
Posted: Wed Nov 21, 2012 10:12 pm Post subject: |
|
|
 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 |
|
 |
mqsiuser |
Posted: Thu Nov 22, 2012 1:39 am Post subject: Re: Environment variable vs row variable |
|
|
 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 |
|
 |
Esa |
Posted: Thu Nov 22, 2012 1:47 am Post subject: Re: Environment variable vs row variable |
|
|
 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 |
|
 |
ravilegolas |
Posted: Thu Nov 22, 2012 5:22 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|