【问题标题】:DynamoDB Update item wothout any action. Full rewriteDynamoDB 更新项目,无需任何操作。完全重写
【发布时间】:2017-06-27 14:30:23
【问题描述】:

我需要重写几乎所有复杂的项目模式。

如果不采取行动,我找不到重写它的方法。

我找到了发送新旧项目属性的唯一方法,使用旧属性删除所有属性,然后从新属性中添加所有属性。 并按类:Aws::DynamoDB::Types::UpdateItemInput http://docs.aws.amazon.com/sdkforruby/api/Aws/DynamoDB/Types/UpdateItemInput.html

还有其他方法吗?

方案如下:

{
  "app_params": {
    "production_params": {
      "hard_time_control": true,
      "index_max": 300,
      "time_control": true,
      "weight_fix": 100,
      "weight_max": 200
    },
    "search_mx": "11g"
  },
  "client": "client_name",
  "dashboard": false,
  "data": true,
  "test_port": 123,
  "servers": [
    {
      "name": "server1",
      "port": 123,
      "search_type": "test"
    }
  ],
  "stock_port": 456
}

【问题讨论】:

  • PutItem 将完全替换现有项目,如果这有帮助的话。

标签: amazon-web-services amazon-dynamodb


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-01-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-10-25
相关资源
最近更新 更多