小编Abh*_*aya的帖子

AWS DynamoDB 对小于 400KB 的项目大小设置例外

AWS DynamoDB 对放置项目 API 调用的限制为 400KB。我正在放置一个Python字典,其大小是使用方法计算的sys.getsizeof()。即使该方法返回的值小于 400000 字节,put item 操作也会抛出异常:

An error occurred (ValidationException) when calling the PutItem operation: Item size has exceeded the maximum allowed size'

在计算确切尺寸方面我缺少什么吗?

python amazon-web-services amazon-dynamodb boto3

5
推荐指数
1
解决办法
1万
查看次数