简体   繁体   English

NoSQL系统保存关系数据

[英]NoSQL system to save relational data

If my data is relational (publishers-authors-books, associations-teams-players), can we use NoSQL system like HBase or MongoDB to store the data? 如果我的数据是关系型的(publishers-authors-books,associations-teams-players),我们可以使用像HBase或MongoDB这样的NoSQL系统来存储数据吗?

(I know it may sound like a stupid question but I'm just learning :)) (我知道这可能听起来像一个愚蠢的问题,但我只是在学习:))

Yes, you can store any type of data in NoSQL datastores. 是的,您可以在NoSQL数据存储中存储任何类型的数据。 The kind of information you describe should be very adequate for NoSQL. 您描述的信息类型应该非常适合NoSQL。

However, be aware that in a typical NoSQL solution, you would be trading some/many features that are taken for granted in SQL databases, such as transactions , strong consistency , rich queries, ad-hoc queries, etc, mainly in favour of simpler models that can scale horizontally very easily. 但是,请注意,在典型的NoSQL解决方案中,您将交易在SQL数据库中被认为是理所当然的一些/许多功能,例如事务强一致性 ,丰富查询,即席查询等,主要是为了更简单可以非常容易地水平扩展的模型。

One of the Digg engineers working on Cassandra (another NoSQL solution) wrote a very good post about data models and NoSQL (specifically Cassandra). 一个Digg的工程师卡桑德拉(其它的NoSQL解决方案)的工作写了一个很好的职位有关数据模型和NoSQL(特别卡桑德拉)。

This may help you start thinking in column oriented data structures. 这可以帮助您开始考虑面向列的数据结构。

You can store relational data with playOrm and still do joins and such AND scale that data as well. 您可以使用playOrm存储关系数据,并且仍然可以进行连接,并且这样也可以扩展该数据。 There are lots of people saying you can't store relational data in noSQL but this is simply not true as we do it today AND we scale view partitioning and Scalable SQL (S-SQL) which is a slight twist on SQL so that we scale. 有很多人说你不能在noSQL中存储关系数据,但这并不是我们今天所做的那样。我们扩展了视图分区和可伸缩SQL(S-SQL),这对SQL有轻微的影响,因此我们可以扩展。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM