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

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -