I work in a company that makes the collection service to bank customers (banks are our clients) and I mention this so that I do not think I do it for non-legal purposes.
What is the best mechanism to eliminate existing data in another collection?
We are developing a collection system in which it is necessary to import a good amount of customer accounts into a temporary collection (We can import up to 100 thousand records per import, and this process can be daily). The problem is that in this temporary collection there is customer data that is already registered in another collection (Permanent).
What is the ideal mechanism for importing all those accounts and comparing them (for your identity document) with existing customer documents in another collection?
I found this link but I'm not sure that is able to find differences in so many records