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.
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.