|
|
|
|
|
by danudey
5712 days ago
|
|
This seems like the sort of optimization that should be occurring in MongoDB itself - instead of acquiring the lock, loading the record into memory (if it's not already), then making the change and releasing the lock, acquire the lock after the record has been loaded into memory (if it's not already). Have you spoken with any of the MongoDB developers about why it's currently the way it is, vs. a more efficient update path? |
|
For us, our DB abstraction layer made this behavior so simple to add that we didn't make much fuss about it.