Re:Apple open-sources FoundationDB
by tmoertel on Thursday April 19, 2018 @10:36PM
(#16881763)
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)?
[ Parent
| on HN ]
Of 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.