2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
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
respondido hace un año
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 9 meses
- OFICIAL DE AWSActualizada hace 2 años
Please describe instead of attaching link