Posts

Showing posts with the label amazon-dynamodb

AWS DynamoDB simple query from DB

Image
AWS DynamoDB simple query from DB I have a simple table on DynamoDB with an id and email I think I created the indexes and now I just want to query for a specific item with a specific email value. I keep getting errors on that and cant find the right way. This is my "describe" of the table: now how do I query for an item with an email value of "example@example.com" any help will be highly appreciated! 1 Answer 1 You need to create another index (a Global Secondary Index) only on the email field, if you want to be able to query on only that field. You will have to specify the name of the index you want to use as part of the query. email Alternatively, you can do a scan instead of a query . scan query Thanks, can you share an example? And if I have other fields I need to do that for each one? And I thought i added a keyType range there ...

Use condition to check for bitwise data in dynamodb

Use condition to check for bitwise data in dynamodb I have fixed length binary range key in a DynamoDB attribute. In database with value 100110. I want to get the row which have 1 in 3/4/5 bit of attribute or any other solution to check for condition to satisfy the value exists. By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.