amazon web services - DynamoDB create index on map or list type -
i'm trying add index attribute inside of map object in dynamodb , can't seem find way so. supported or indexes allowed on scalar values? documentation around seems quite sparse. i'm hoping indexing functionality similar mongodb far approaches i've taken of referencing attribute index using dot syntax has not been successful. or additional info can provided appreciated.
indexes can built on top-level json attributes. in addition, range keys must scalar values in dynamodb (one of string, number, binary, or boolean).
from http://aws.amazon.com/dynamodb/faqs/:
q: querying json data in dynamodb different?
no. can create global secondary index or local secondary index on top-level json element. example, suppose stored json document contained following information person: first name, last name, zip code, , list of of friends. first name, last name , zip code top-level json elements. create index let query based on first name, last name, or zip code. list of friends not top-level element, therefore cannot index list of friends. more information on global secondary indexing , query capabilities, see secondary indexes section in faq.
q: data types can indexed?
all scalar data types (number, string, binary, , boolean) can used range key element of local secondary index key. set, list, , map types cannot indexed.
Comments
Post a Comment