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 » too many reference variables?

Post new topic  Reply to topic
 too many reference variables? « View previous topic :: View next topic » 
Author Message
bhumulas
PostPosted: Mon Jun 01, 2009 7:42 am    Post subject: too many reference variables? Reply with quote

Apprentice

Joined: 17 Feb 2006
Posts: 41

Will there be any performance implications, if we use too many reference variables (passing environment tree to common routines) in ESQL?

Kindly advise.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Mon Jun 01, 2009 7:50 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

depends on how many is too many.....
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Tue Jun 02, 2009 4:53 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Depends on what your performance requirements are.

There's always performance implications from every choice. Whether the implication is meaningful or not is an entirely different question.
Back to top
View user's profile Send private message
bhumulas
PostPosted: Wed Jun 03, 2009 6:24 am    Post subject: Reply with quote

Apprentice

Joined: 17 Feb 2006
Posts: 41

Let me put my question in this way:

Option 1:
set Environment.Variables.ID='XXX';
.
.
set myvariableID=Environment.Variables.ID;

Option 2:
DECLARE refEnv Environment.Variables;
call setID(refEnv, 'xxx');
.
.
.
call getID(refEnv) into myvariableID;

I have those two options, if I use the second option, will there be any performance issues compare to the option 1?
We are having around 100+ variables in environment tree.

Thinking references are nothing but pointers, so hoping there wont be any performance issues, but would like to know suggestions.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jun 03, 2009 7:57 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The performance of those two choices will be different.

That difference will likely be small, but it will be there.

We can't tell you if that difference will matter or not. We don't know if you are trying to process 1 message an hour or 100,000 messages an hour.
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Wed Jun 03, 2009 8:21 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

I'd be more concerned about what you are doing with '100+ variables in environment tree' and whether you are tidying them up when you are finished with them.
Back to top
View user's profile Send private message
bhumulas
PostPosted: Wed Jun 03, 2009 8:56 am    Post subject: Reply with quote

Apprentice

Joined: 17 Feb 2006
Posts: 41

Thanks for all your comments.

We could get 5000 msgs per hour, which we need to respond in 6 sec per (including service call) each message.

The main use of environment tree in our application is to populate output tree values, as we have many services in between before building the output tree. All the intermediate service calls depends on input root values. We need to keep the environment tree variables until we build the output tree.

As a process of abstracting environment variables, we thought of keeping a separate ESQL file with all set/get methods. If we follow this approach we need REFERENCE variables in all the methods.

Hence taking all your inputs, in terms of performance trade-off between Option 1 and Option 2 (which I specified earlier).
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 » too many reference variables?
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.