3 ms·
Does the implementation handle the case that you want to do a write that is conditioned on a prior read finding no corresponding record(s)?
by tmoertel 9y ago
Does the implementation handle the case that you want to do a write that is conditioned on a prior read finding no corresponding record(s)?
- itp 9y agoOf course. FDB thinks about read and write conflict ranges, which are functions of the keys, not the values (or lack thereof). A read of a non-existent key conflicts with a write to that key. A read of a range of keys conflicts with a write to a key in that range, even if that key did not have an associated value at the time of the original read.