fix idempotency check for records_all view.