NoSQL 中的事务? [英] Transactions in NoSQL?

查看:43
本文介绍了NoSQL 中的事务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究 NoSQL 以扩展数据库的替代方案.如果我想要对此类事物敏感的基于事务的事物,我该怎么办?

I'm looking into NoSQL for scaling alternatives to a database. What do I do if I want transaction-based things that are sensitive to these kind of things?

推荐答案

总的来说,NoSQL 解决方案比关系数据库具有更轻量级的事务语义,但在某种程度上仍然具有原子操作的设施.

Generally speaking, NoSQL solutions have lighter weight transactional semantics than relational databases, but still have facilities for atomic operations at some level.

通常,进行主-主复制的那些提供较少的一致性,而提供更多的可用性.因此,应该为正确的问题选择正确的工具.

Generally, the ones which do master-master replication provide less in the way of consistency, and more availability. So one should choose the right tool for the right problem.

许多提供单个文档(或行等)级别的交易.例如,对于 MongoDB,单个文档具有原子性 - 但文档可能相当丰富,因此这通常效果很好 - 更多信息 这里.

Many offer transactions at the single document (or row etc.) level. For example with MongoDB there is atomicity at the single document - but documents can be fairly rich so this usually works pretty well -- more info here.

这篇关于NoSQL 中的事务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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