Hello. I am currently trying to prevent duplicate data in one particular field from being entered into my database. My data is a comment feed from a web scraping application and I need to prevent duplicate entries from being added. I tried creating a unique index in MongoDB compass, but it seems that the data input stops upon finding the duplicate data. Is there a way in Compass to set up an Index so that duplicate entries are ignored and not added? Thanks!
That is the normal behavior. To let other inserts happen you have to set ordered to false.
Thank you for the clarification. Is this something that can be done through the Compass UI?