How to determine if a DynamoDB item was indeed deleted?
问题 DynamoDB provides an API for deleting items. In the returned DeleteItemOutcome and DeleteItemResult there is no field or method to determine if the key was found and the item was indeed deleted. The only way to find out if the item was indeed present and deleted, is to request the items' attributes: new DeleteItemSpec() .withPrimaryKey("key","1") .withReturnValues(ReturnValue.ALL_OLD)) This, however, consumes extra read capacity. Is there a more efficient way to check the delete result - key