I have a need to find documents in one group that don’t exist in another group of documents.
for $a in input()/doc1, $b in input()/doc2
where not ($a/id = $b/id)
I tried the above query but it got timeout, even though id is indexed.
Can you tell me what is the best format for doing this.