4 ms·
I believe MongoDB's server side functions allow you to create an atomic grouping of operations.. i.e. store a function and call it by db.eval() See the followi
by veesahni 15y ago
I believe MongoDB's server side functions allow you to create an atomic grouping of operations.. i.e. store a function and call it by db.eval()
See the following:
http://www.mongodb.org/display/DOCS/Server-side+Code+Execution#Server-sideCodeExecution-Storingfunctionsserverside http://www.mongodb.org/display/DOCS/Server-side+Code+Executi...
http://www.mongodb.org/display/DOCS/Server-side+Code+Execution#Server-sideCodeExecution-NotesonConcurrency http://www.mongodb.org/display/DOCS/Server-side+Code+Executi...
- matan_a 15y agoThanks for the suggestion, but still not ideal. It performs a global lock on the DB which would block all operations while it computes.