lundi 21 mars 2016

How to implement a collection level lock in mongodb?

I am using mongodb with rails app and have model post.rb

If i am going to destroy a record of post, I want to have collection level lock so that the user wont be able to fire the destroy request twice for the same record and its before_destroy callback will not get executed twice.

Aucun commentaire:

Enregistrer un commentaire