Author |
Message
|
bhaski |
Posted: Tue Feb 11, 2014 8:45 am Post subject: is performance going to affect if the Compute node is not co |
|
|
 Voyager
Joined: 13 Sep 2006 Posts: 78 Location: USA
|
Hi Friends..
If the Compute Node output is not connected to any ( actually not required the output ) and return is true.. will it affect performance? but not getting any error.
Input --> Compute Node ( doing some select query and keeping them to cache ). but it returns true.
Please clarify my doubt...
Bhaski. _________________ Thanks and Regards
Bhaski
Websphere MQ Admin Certified
Websphere WMB Admin certified |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 11, 2014 9:12 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You're going to get some sort of hit as the node will assemble an output message tree that it immediately discards.
I doubt it's going to be significant.
IMHO it's neater / clearer / self documenting to use return false to deliberately indicate that you know the flow stops. But that's just me. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
dogorsy |
Posted: Tue Feb 11, 2014 9:27 am Post subject: |
|
|
Knight
Joined: 13 Mar 2013 Posts: 553 Location: Home Office
|
kind of ridiculous question. If you do not put any message through the flow, performance will be great !!... do you need error processing or not ?
just to expand on that. The select on the db could give an error, so is that ok ? would you be happy with that ? |
|
Back to top |
|
 |
Gralgrathor |
Posted: Tue Feb 11, 2014 11:58 am Post subject: |
|
|
Master
Joined: 23 Jul 2009 Posts: 297
|
Vitor wrote: |
the node will assemble an output message tree that it immediately discards |
Is there no broker-side optimization for that kind of thing? |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 11, 2014 12:02 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Gralgrathor wrote: |
Vitor wrote: |
the node will assemble an output message tree that it immediately discards |
Is there no broker-side optimization for that kind of thing? |
I'm not aware of any and am prepared to be corrected by anyone who knows better.
As I indicated, I tend to set false. Though server side optimisation is one possible explaination of the lack of detectable time impact. As well as it only taking so little time you can't detect it. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bhaski |
Posted: Fri Feb 14, 2014 5:35 pm Post subject: |
|
|
 Voyager
Joined: 13 Sep 2006 Posts: 78 Location: USA
|
Thank you for your input.. one more question.. If we remove 2 Flow order node and replace it with if condition in compute node ( Compute node is already available after Flow Order ). how much I can expect improvement? 10%? _________________ Thanks and Regards
Bhaski
Websphere MQ Admin Certified
Websphere WMB Admin certified |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Feb 15, 2014 8:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
bhaski wrote: |
Thank you for your input.. one more question.. If we remove 2 Flow order node and replace it with if condition in compute node ( Compute node is already available after Flow Order ). how much I can expect improvement? 10%? |
Undetermined as this is a change in design. If you had said FilterNode instead of FlowOrder it would have made more sense...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Vitor |
Posted: Tue Feb 18, 2014 5:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
fjb_saper wrote: |
Undetermined as this is a change in design. If you had said FilterNode instead of FlowOrder it would have made more sense.. |
A Filter node performs better than a Compute node as a Filter node doesn't perform any manipulation of the message tree. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bhaski |
Posted: Wed Feb 19, 2014 8:34 am Post subject: |
|
|
 Voyager
Joined: 13 Sep 2006 Posts: 78 Location: USA
|
Thank you friends all your reply. _________________ Thanks and Regards
Bhaski
Websphere MQ Admin Certified
Websphere WMB Admin certified |
|
Back to top |
|
 |
|