Quoting Nils Breunese <[email protected]>:
Kosta wrote:
Quoting Nils Breunese <[email protected]>:
* Recursive Queries (i.e. ask for all programs in group x and use
recursive queries to check whether x is actually in the path z-y-x)
* Storing the whole path in the document (which is a pain in case
you ever move the group)
Thanks for confirming my thoughts. I'll see if I can get the
incoming data to change so the whole path is stored. Otherwise the
clients will indeed need to use multiple queries.
I thought about this a little more. Either the group name itself is a
unique identifier, then you only need one query per group (there's no
group x OR group y), but you need recursive queries to construct the
path. Or group names can be ambiguous (but the path is unique), then
you need the full path stored in each doc anyway.
HTH,
Kosta