简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM