【发布时间】:2019-09-20 23:45:06
【问题描述】:
放置项 API 调用的 AWS DynamoDB 限制为 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