-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#58 - Add serverside JavaScript sample for MongoDB. #58
Conversation
ea62e60
to
41c5a44
Compare
41c5a44
to
9ecb1df
Compare
Use a serverside script to simulate putIfAbsent as contracted by the Map interface. The op will be atomic since mongoDB will put a lock on db until the script is finished.
I wonder if the example gets a bit simpler if we remove the repositories from the mix here. |
9ecb1df
to
e4c94e4
Compare
Use a serverside script to simulate putIfAbsent as contracted by the Map interface. The op will be atomic since mongoDB will put a lock on db until the script is finished.
e4c94e4
to
253a607
Compare
Use a serverside script to simulate putIfAbsent as contracted by the Map interface. The op will be atomic since mongoDB will put a lock on db until the script is finished.
Use a serverside script to simulate putIfAbsent as contracted by the Map interface. The op will be atomic since mongoDB will put a lock on db until the script is finished.
253a607
to
17321e4
Compare
thanks @olivergierke - moved the script into the tests and deleted the custom repository. |
fd38e72
to
19bb907
Compare
Use a server-side script to simulate putIfAbsent(…) as contracted by the Map interface. The operation will be atomic since MongoDB will put a lock on database until the script is finished.
That's merged :). |
Use a serverside script to simulate
putIfAbsent
.