1

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.

Kok How Teh
  • 3,298
  • 6
  • 47
  • 85

1 Answers1

0

You need to pagĂ­nate.

For example code look at https://github.com/aws-samples/aws-dynamodb-examples/blob/master/DynamoDB-SDK-Examples/python/WorkingWithScans/scan_paginate.py

hunterhacker
  • 6,378
  • 1
  • 14
  • 11