I have worked a lot with sql like databases but when it comes to nosql dbs my knowledge is limited. Planning the design of my application I asked myself if there are differences when you want to find an entry in the database and the parameters used for identification.
For example: To avoid duplicates I want to check the database if the entry exists before using the insertOne command. Are there any differences whether I use the _id field or an attribute I defined myself in the query when it comes to efficiency and speed? I think that the collection will not hold more than 10.000 items.
Because I’m able to set the _id field when inserting a dataset manually this could impact the overall performance.