Python boto3 get item with specific non-parition-key attribute value

25 Views Asked by At

My AWS dynamoDB has id as Partition key and there is no Sort key. The following does not return the existing record from the table:

response = producttable.scan(FilterExpression=Attr('title').eq("My Product"))

response['ScannedCount'] is less than the total count of the table.

1

There are 1 best solutions below

0
hunterhacker On BEST ANSWER