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

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -