I have a table with column Id and JSON column.
Id | JSON
----------------------------------------------------------------
101 | {"person_id":456,"f_name":"t", "l_name":"Jack"}
|
102 | {"person_id":123,"f_name":"M", "l_name":"Ron"}
|
103 | {"person_id":789,"f_name":"A", "l_name":"Tom"}
I am able to create GSI(Global Secondary Index) on column Id , but I would like to know how to create GSI on person_id
and f_name
. Is it possible to create GSI for json attributes? As upon observation, I was able to create GSI on columns in tables of Dynamo DB..Please provide a C#.Net example..
You can create a GSI or LSI on any top-level JSON element. So you have to bring the json element to column level and then create the index.
Taken from http://aws.amazon.com/dynamodb/faqs/
Although I haven't managed to do it, or seen any examples of it being done with cloud formation.