|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CARDINALITY |
« View previous topic :: View next topic » |
Author |
Message
|
N |
Posted: Wed May 14, 2008 2:19 am Post subject: CARDINALITY |
|
|
Acolyte
Joined: 21 Jul 2007 Posts: 64
|
Hi,
Beside using CARDINALITY( InputRoot.*[]); to get the total msg,
anybody had better way of doing this?
As cardinality taking a lot of resources.  |
|
Back to top |
|
 |
AkankshA |
Posted: Wed May 14, 2008 2:27 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
Cardinality is for telling the number of child elements...
Set OutPutRoot = InputRoot;
ll copy the entire message for you _________________ Cheers |
|
Back to top |
|
 |
sebastianhirt |
Posted: Wed May 14, 2008 6:35 am Post subject: |
|
|
Yatiri
Joined: 07 Jun 2004 Posts: 620 Location: Germany
|
What exactly are you trying to achieve? |
|
Back to top |
|
 |
broker_new |
Posted: Wed May 14, 2008 7:48 am Post subject: |
|
|
 Yatiri
Joined: 30 Nov 2006 Posts: 614 Location: Washington DC
|
Cardinality is for telling the number of child elements...
As Cardinality is a performance hit
'N' wants to know is there any way to find the no of child elements.
I don't think there is a way for doing this other than cardinality.
In Worst case scenario we have to loop it and count until the LASTMOVE. _________________ IBM ->Let's build a smarter planet |
|
Back to top |
|
 |
JosephGramig |
Posted: Wed May 14, 2008 9:06 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
As a friend just pointed out if you are using an index, then the whole array is being navigated to get to your element.
You may be aware that the tree parts you mention are navigated (like InputRoot.XML.Rtag.OtherTag.moreTag is 4 or 5 tasks). So if you have a bunch of operations down the tree, use a REFERENCE.
Better still, figure out how to do what you want by walking the tree with NEXT SIBLING or NEXT CHILD.
Now, I have no idea what the heck the original question was!  |
|
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
|
|
|
|