如何解决dynamodb 本地,重复键
我正在使用 dynamodb Local。我正在尝试为一个人分配两个地址,但出现“重复密钥”错误。 我想为一个人添加更多国家/地区和更多地址。但是每当我尝试为该人添加另一个国家/地区和地址时,它都会出现重复密钥错误
有人可以帮我吗?帮助表示赞赏。 The image of my localhost code
{
"AttributeDeFinitions": [
{
"AttributeName": "AddressID","AttributeType": "S"
},{
"AttributeName": "CustomerID",{
"AttributeName": "Country","AttributeType": "S"
}
],"TableName": "Addresses","KeySchema": [
{
"AttributeName": "AddressID","KeyType": "HASH"
},"KeyType": "RANGE"
}
],"TableStatus": "ACTIVE","CreationDateTime": "2021-04-06T09:06:29.622Z","ProvisionedThroughput": {
"LastIncreaseDateTime": "1970-01-01T00:00:00.000Z","LastDecreaseDateTime": "1970-01-01T00:00:00.000Z","NumberOfDecreasesToday": 0,"ReadCapacityUnits": 5,"WriteCapacityUnits": 5
},"TableSizeBytes": 732,"ItemCount": 6,"TableArn": "arn:aws:dynamodb:ddblocal:000000000000:table/Addresses","GlobalSecondaryIndexes": [
{
"IndexName": "UserIndex","KeySchema": [
{
"AttributeName": "AddressID","KeyType": "HASH"
},{
"AttributeName": "Country","KeyType": "RANGE"
}
],"Projection": {
"ProjectionType": "ALL"
},"IndexStatus": "ACTIVE","ProvisionedThroughput": {
"ReadCapacityUnits": 5,"WriteCapacityUnits": 5
},"IndexSizeBytes": 732,"IndexArn": "arn:aws:dynamodb:ddblocal:000000000000:table/Addresses/index/UserIndex"
}
]
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。