mongodb: insert if not exists
Every day, I receive a stock of documents (an update). What I want to do is insert each item that does not already exist.
Every day, I receive a stock of documents (an update). What I want to do is insert each item that does not already exist.
I’m using mongodb and I store datetime in my database in this way