gpt4 book ai didi

amazon-dynamodb - 如何在 DynamoDB 中分配外键?

转载 作者:行者123 更新时间:2023-12-04 01:00:13 25 4
gpt4 key购买 nike

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

最佳答案

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

来自 FAQ解释说它不是 关系数据库:

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.

关于amazon-dynamodb - 如何在 DynamoDB 中分配外键?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28431758/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com