ddb-single-table-example
ddb-single-table-example copied to clipboard
Companion code to this blog post https://www.trek10.com/blog/dynamodb-single-table-relational-modeling/
staging track 10 does not exist anymore
Table waiters are more deterministic than `sleep()`. https://github.com/trek10inc/ddb-single-table-example/blob/d54358a441c7305bd9d5ebbd1f2876e5a53f44a9/load.py#L57 ```python waiter = dynamodb.meta.client.get_waiter(tablename) waiter.wait(TableName=table_name) ```
add consistancy for orderID
The dates of the orders are timestamps in strings, so the most recent orders are sorted lexicographically last in the index. So the query needs to scan from the end...