-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Persistence
-
None
Currently nesting `atomically` calls makes each call have its own atomic context. When each block completes, its changes get persisted.
It can be useful to nest these atomic contexts, such that changes to the same document made in different blocks are persisted together in a single atomic operation.
The nesting must be opted into either via an option to `atomically` or a global configuration option `join_contexts`. This option can also be used to join transaction contexts in the future.
- is related to
-
MONGOID-4651 Verify/test all atomic operations are dirty tracked
- Backlog