Semi-idempotently creating and updating record sets