I am reading DynamoDB item as a page Size of 10. There is one use case where, the records can be added in DynamoDB while processing DynamoDB. As, we know that the pointer takes care of last Record Read, but suppose if record is added where pointer already visited, in that case the recently added record is not getting picked. So, I want to know is there any process to check, if record added in between, so as we can reinitialize the pointer.
One method: Count no of record in Db at beginning, and at last if count is different then reinitialize pointer. Any other approach?