node.js - How to achieve rollback in transactions in mongo? -


i using mongoose on mongodb.

in request , response nodejs express server, requires no of queries mongodb through mongoose.

in many cases may happen, if first few queries executes , rest failed under transaction.

now need rollback db state initial state of db.

so how can rollback efficiently in mongodb? please provide suitable references.

i agree hector. if need multiple document transactions mongo might not fit you. can embed data structure in single document? can rollback looking for.

another option @ mongo clone tokumx provides transactions across multiple documents.


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -