I tried to make an atomic bulk documents update with all_or_nothing
set to true
on Cloudant, but got the following response:
[{"id":"7b75974f73c4230047b96b5272b696fd","rev":"1-e9b78ecba4c4ac29a9743cd001219eae","error":"not_implemented","reason":"all_or_nothing is not supported yet"},
{"id":"921faa913230839614a4feb19d5c39ec","rev":"0-","error":"not_implemented","reason":"all_or_nothing is not supported yet"}]
I followed CouchDB documentation because Cloudant is a fork of CouchDB and for most uses it seems to be compatible. Not in this case.
So I looked into Cloudant documentation and indeed the all_or_nothing
flag is not mentioned there at all. It is not mentioned in Moving Apache CouchDB Data
to Cloudant white paper either.
Now I wonder.. is it by design (maybe it shouldn't be needed if data is modeled the proper NoSQL way? Are there any best practices that apply here?) or is it just a missing feature?