Concurrent WriteBatch


(Maxime Déraspe) #1

Hi,

I would like to know if it is OK to have multiple concurrent WriteBatch.

Also is inserting multiple values for a same key in one WriteBatch will keep all the value versions ?

Thanks !


(Manish R Jain) #2

Multiple concurrent writebatch is OK.

Multiple writes to the same key in the same writebatch would not keep all the versions. It’s possible that multiple writes to the same key would go into the same underlying txn, and hence would just overwrite the previous value, before committing.