amazon-dynamodb
What is the recommended way to delete a large number of items from DynamoDB?
What I ideally want to do is call LogTable.DeleteItem(user_id) – Without supplying the range, and have it delete everything for me. An understandable request indeed; I can imagine advanced operations like these might get added over time by the AWS team (they have a history of starting with a limited feature set first and evaluate … Read more
Querying DynamoDB by date
Given your current table structure this is not currently possible in DynamoDB. The huge challenge is to understand that the Hash key of the table (partition) should be treated as creating separate tables. In some ways this is really powerful (think of partition keys as creating a new table for each user or customer, etc…). … Read more
Number of attributes in key schema must match the number of attributes defined in attribute definitions
TL;DR Don’t include any non-key attribute definitions in AttributeDefinitions. DynamoDB is schemaless (except the key schema) That is to say, you do need to specify the key schema (attribute name and type) when you create the table. Well, you don’t need to specify any non-key attributes. You can put an item with any attribute later … Read more
Difference between local and global indexes in DynamoDB
Local Secondary Indexes still rely on the original Hash Key. When you supply a table with hash+range, think about the LSI as hash+range1, hash+range2.. hash+range6. You get 5 more range attributes to query on. Also, there is only one provisioned throughput. Global Secondary Indexes defines a new paradigm – different hash/range keys per index. This … Read more