I am working with backups. At the moment I have two collections: A and A2.
documents in both locations look like this
{_id:ObjectId(“6456456456”), “name”:“a_unique_name”}
The documents in A don’t share the same _id, they only share the “name” attribute.
So my question is how can I use an aggregation pipeline to compare the two collections and find the difference between the sets of “name” attributes.
Someone gave me a solution that required the creation of an additional attribute. I don’t think that sounds like an efficient idea. I image MongoDB is very powerful and should be able to not resort to setting and unsetting attributes per document when I have almost a billion of them.