Why there is no all_or_nothing support in Cloudant?

前端 未结 1 1488
离开以前
离开以前 2021-01-25 10:28

I tried to make an atomic bulk documents update with all_or_nothing set to true on Cloudant, but got the following response:

    [{\"id         


        
1条回答
  •  梦谈多话
    2021-01-25 10:58

    The all_or_nothing flag is not supported on Cloudant. It was removed when CouchDB was forked and became BigCouch. As the databases is sharded and stored on separate machines, it would be be overcomplicated to provide all_or_nothing guarantees in a distributed system, where your _bulk_docs requests ends up writing to separate shards.

    I wouldn't be surprised to find that this is removed from the forthcoming CouchDB 2.0 aswell.

    0 讨论(0)
提交回复
热议问题