2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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"
0
Check this out https://stackoverflow.com/questions/58253219/dynamodb-how-to-design-and-query-multiple-fields
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- Réponse acceptéedemandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 8 mois
- AWS OFFICIELA mis à jour il y a 9 mois
Please describe instead of attaching link