Is there a mechanism for determining directly the number of subnodes under a given global node? I know it is possible to $order through the subnodes and generate a count, but I'm interested in being able to know the count of any global node without having to loop over the node. I suspect the database itself knows these counts, but is there a user-level command or function that can access this?
There is no mechanism to directly determine the number of subnodes under a given global. You have to do a $ORDER or $QUERY as appropriate. The database does not maintain these counts either.
One more thing I forgot to mention in my response. MUPIP INTEG can report the information at a global level but it gets this information by traversing the database as well so it will take some time. This is just in case you want to use an existing tool.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.