加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

如何处理NoSQL中重复数据的更改

发布时间:2020-12-13 13:31:44 所属栏目:百科 来源:网络整理
导读:我们正在评估NoSQL的即将到来的项目.我倾向于以RDBMS方式思考事情,并且在概念化缺乏规范化方面遇到困难. 我知道复制数据在NoSQL中不被认为是错误的.我无法理解的是修改数据以防止异常. 举例说明: You are organizing a series of poker tournaments. You ha
我们正在评估NoSQL的即将到来的项目.我倾向于以RDBMS方式思考事情,并且在概念化缺乏规范化方面遇到困难.

我知道复制数据在NoSQL中不被认为是错误的.我无法理解的是修改数据以防止异常.

举例说明:

You are organizing a series of poker tournaments. You have players,
locations,and tournament events. As I understand it,a tournament
event might contain a location and a collection of players. It does
not need to have all the player data,but if you want to get the names
and home addresses of everyone going to the next tournament,that info
should be in the tournament collection.

Someone has gotten married and moved,changing their last name and
address. Does the application need to update the player collection and
the tournament collection? Or is my model of the collections wrong? How do
developers “keep track” of where information is duplicated?

我看到的模型最近使用的是拥有一个不变的“主人”数据集(在你的情况下,玩家名单,与每个比赛中的玩家的比赛的列表“关系”模拟,在那里比赛记录具有玩家ID的列表),并且只有通过在“主”(master)数据上运行周期性过程,才能更新过非规范化列表(在您的情况下,具有完全填充的玩家数据的比赛列表).

这样,应用程序只需要更新主数据,并且定期更新过程将最终重建非规范化结果.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读