Prevent duplicate partition keys