Closed rhuang closed 1 month ago
Yeah, it's a known issue. Changes in a nested object (e.g. of a custom type, or serialized
/map
/array
types) aren't detected and don't trigger persisting.
There are already issues for it: #666, #749, #738
Ah, sorry for the dup. I will close and follow the others.
On 3.8.0, calling
.save
triggers aPUT
for both scenarios above. On 3.8.0, if you change nested attributes likemy_obj.metadata[:some][:path][:count] = 5
, callingmy_obj.changes
afterwards returns an empty hash.For context, I was operating on the same object but different columns, from 2 different threads, and realized one thread was overriding the other because
.save
callsPUT
, so I was checking if I can get Dynamoid to callUPDATE
to avoid this issue.