I want to fetch all items with query() from table not with scan as it is very expensive
Can I use .contains() without table.scan()
dynamodb = boto3.resource('dynamodb')
table= dynamodb.Table('investors')
data = table.scan(
FilterExpression=Attr('groups_name').contains('person_name')
)
# Something like this
data = table.query(...
....
('groups_name').contains('person_name')
)
In my DynamoDB -> investors (Table)(all have same partition key='fund')
-> sample item -> groups_name [list]: person_name (String)