|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
performance question Environment vs. LocalEnvironment |
« View previous topic :: View next topic » |
Author |
Message
|
kwelch |
Posted: Tue Aug 06, 2002 12:31 pm Post subject: performance question Environment vs. LocalEnvironment |
|
|
 Master
Joined: 16 May 2001 Posts: 255
|
Hi,
I seem to remember reading somewhere that it is more efficient to use Environment.Variables vs. LocalEnvironment.Variables to store data as the tree doesn't have to get copied from compute node to compute node. I can't seem to find this reference now though! Does anyone know if this is true?
Regards,
Karen |
|
Back to top |
|
 |
kirani |
Posted: Tue Aug 06, 2002 12:51 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Good question!
As per my knowledge, an empty Environment Tree is created when the message is received at the MQInput node. While executing the ESQL code to update Environment Tree in a compute nodes, it will update the same copy of the tree in the message flow for that instance.
Storing Variables into LocalEnvironment tree will lead to creation of new copy of LocalEnvironment tree. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
kwelch |
Posted: Tue Aug 06, 2002 1:02 pm Post subject: |
|
|
 Master
Joined: 16 May 2001 Posts: 255
|
Kiran,
Forgive me if I am stating the obvious here but I need to just make sure I understand.
If I want to build an XML message in the Environment.Variables, I can do so and keep adding to it from Compute Node to Compute Node, the tree does not have to be copied.
If I were using LocalEnvironment.Variables, then in each Compute Node, I would have to set OutputLocalEnvironment.Variables = InputLocalEnvironment.Variables, to retain the values set by the prior Compute Node?
So the answer to my question would be to use the Environment.Variables for better performance? Thanks!
Karen |
|
Back to top |
|
 |
kirani |
Posted: Tue Aug 06, 2002 1:18 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
That's correct! _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
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
|
|
|
|