I’ve got a record with an ordered list bin, the only access pattern for the set so far was to append values to the ordered list bin via AerospikeClient#operate method. I’ve stumbled upon a requirement to be able to completely replace a record. I’ve tried to pass a WritePolicy instance with RecordExistsAction.REPLACE recordExistsAction specified which resulted in an error:
com.aerospike.client.AerospikeException: Error 4,1,BB9020011AC4202 127.0.0.1 3000: Parameter error.
The only option for me is to delete a record first and then call an operate method to append values to an ordered list, but I’d like to avoid an extra network call to the Aerospike server as much as possible. Are there any other options available to solve my issue?
I’ve been using Java Aerospike Client.
Thank you in advance. Cheers, Mike.