Hey everyone,
I experimented now a bit with the #deleteRange and have some observations and follow-up questions.
First, it looks like that
OptimisticTransaction doesn't support DeleteRange. It is not part of the Java API. Is it just a limitation of the Java API or is this in general the case?
I was able to "work around" this via getCommitTimeWriteBatch, which has deleteRange. But then nothing happened. It looks like the changes to the commitTimeWriteBatch are not reflected in the transaction.
I found
this comment, which might explain this. Unfortunately, there is no
use_only_the_last_commit_time_batch_for_recovery option
on the Java API.
I thought getCommitTimeWriteBatch will return me the underlying WriteBatch. Or the method getWriteBatch which returns WriteBatchWithIndex, but it also doesn't support the deleteRange.
I tried to apply the commitTimeWriteBatch again to the transaction via rebuildFromWriteBatch
But then it fails with: DeleteRangeCF not implemented
Do I oversee something or is not possible or not supported to use DeleteRange with OptimisticTransaction(DB)?
We are thinking about going back to using WriteBatch or WriteBatchWithIndex in general, instead of transactions, which might be another reason if this is the case.
Happy for any input you have.
Greets
Chris