2 回答
- 最新
- 投票最多
- 评论最多
1
You can specify multiple filters using a FilterExpression
, however it is highly in-efficient and best to be avoided:
FilterExpression="specifictag=123 AND specifictime=92487109247"
To make things more efficient you can make use of overloading your keys, or using composite keys. For example, if you always want to filter based on the same attributes in order, then you can define your schema to suit that. This makes our query calls highly efficient, but can take some thought to get the schema design correct
pk | sk | data |
---|---|---|
user123 | dynamodb#2022-10-21#Ireland | Data |
KeyConditionExpression="pk=user123 AND sk=dynamodb#2022-10-21#Ireland"
相关内容
- AWS 官方已更新 9 个月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
Please describe instead of attaching link