Support merge constraints when updating existing records