aws lambda - DynamoDB indexing on payload -


this question has answer here:

my dynambodb row item looks this: (it given me)

{      "id":"123456",      "date_time":"01062016 143212",      "payload":{          "type":"a",          "value":"temp value",      } } 

i added indexes on id + date_time. how can add index on payload.type?

thanks

dynamodb doesn't support indices on nested fields inside map.

see official documentation improving data access secondary indexes in dynamodb.

the key schema index. every attribute in index key schema must top-level attribute of type string, number, or binary. other data types, including documents , sets, not allowed.


Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

c# - Get the Class name in a class with atribute inside a attribute method -

javascript - Why Selenium can't find an element that is graphically visible -