2 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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
beantwortet vor einem Jahr
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 9 Monaten
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
Please describe instead of attaching link