如何在DynamoDB中分配外键? [英] How to assign foreignkey in DynamoDB?

查看:81
本文介绍了如何在DynamoDB中分配外键?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Dynamo数据库。我正在尝试测试Dynamo数据库表,但是我无法在其中获取外键。

I'm trying to use the Dynamo DB. I am trying to test the Dynamo DB Tables But I can't Get Foreign Key in this.

推荐答案

DynamoDB没有外部键键。这是一个NoSQL数据库,不支持这种关系数据。表之间不维护任何数据完整性,因此这种行为不是内置的。如果要具有这种行为,则必须以不同的方式对DynamoDB中的数据存储进行建模。

DynamoDB does not have foreign keys. It is a NoSQL database that doesn't support that kind of relational data. There is no data integrity maintained between tables, so this sort of behavior is not built in. If you want to have this sort of behavior, you will have to model your data storage in DynamoDB a different way.

来自常见问题解答,说明它不是数据库:


虽然Amazon DynamoDB解决了数据库
的核心问题,但可伸缩性,管理,性能和可靠性却没有, b $ b具有关系数据库的所有功能。它不支持复杂的关系查询(例如联接)或复杂的
交易。如果您的工作负载需要此功能,或者您正在寻找与现有关系引擎的兼容性,则您可能希望在Amazon RDS或Amazon EC2上运行关系引擎。尽管
关系数据库引擎提供了强大的功能,但是
将工作负载扩展到单个关系数据库实例之外却非常复杂,并且需要大量时间和专业知识。

While Amazon DynamoDB tackles the core problems of database scalability, management, performance, and reliability, it does not have all the functionality of a relational database. It does not support complex relational queries (e.g. joins) or complex transactions. If your workload requires this functionality, or you are looking for compatibility with an existing relational engine, you may wish to run a relational engine on Amazon RDS or Amazon EC2. While relational database engines provide robust features and functionality, scaling a workload beyond a single relational database instance is highly complex and requires significant time and expertise.

这篇关于如何在DynamoDB中分配外键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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