多个文档在Couchbase中更新 [英] Multiple documents update in couchbase

查看:52
本文介绍了多个文档在Couchbase中更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是一次更新沙发床中的多个文档的最佳方法?

方法我必须在多个榻榻米基础文件中更新类似的信息.一种简单的方法是用java提取所有这些文档,然后对其进行更新,这不是一个好的解决方案.

Means I have to update similar kind of information in multiple couchbase documents. The simple way is fetching all these documents in java and then updating them, which is not a good solution.

couchbase是否提供某种可以使用的功能或API?鉴于此,所有这些文档的文档结构都是相同的.

Does couchbase provide some kind of functionality or API, which can be used? Given that, the document structure of all these documents is the same.

我们已经搜索了couchbase网站,但没有可用的内容.

We have searched the couchbase website but nothing is available.

谢谢.

推荐答案

当我们想在沙发数据库中更新多个文档时,可能的是,但是当事务之间发生任何事情(任何异常)时,沙发数据库不支持回滚机制.

When We want to update multiple document in couchbase it's possible but when something happened in between the transaction (any exception) then couchbase not supporting rollback mechanism.

为此,您必须使用: Couchbase交易

对于Spring引导开发人员:带有Couchbase交易的Spring Boot数据

For Spring boot developers: Spring Boot data with Couchbase Transactions

这篇关于多个文档在Couchbase中更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆