suweller / mongoid-autoinc

⬆ Auto incrementing fields for Mongoid documents
MIT License
62 stars 44 forks source link

Duplicates entry values #38

Closed arezk84 closed 4 years ago

arezk84 commented 4 years ago

I have used this gem in an application that has a concurrent insert, unfortunately, it duplicates the auto-increment field, I indexed the field with unique to catch the duplicate. However, I still handle fixing the duplicates manually. I ended up when you need the auto-increment field don't go with MongoDB. it's not designed for this.