amazon web services - DynamoDB: Insert a new Row with unique GSI -


i using dynamodbmapper insert new object table. table structure:

key: hash_key attribute1: global sec index other attributes 

now want value of attribute1 unique in table. how that?

already tried:

a. map.put("attribute1", new expectedattributevalue(false)); b. map.put("atrribute1", new expectedattributevalue().withexists(false)); 

i using mapper.save() default savebehaviour.

you cannot gsi. index not nothing uniqueness. indexes table faster lookup based on attribute

also see: dynamodb key uniqueness across primary , global secondary index


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -