Is it possible to mix optimistic with pessimistic transactions?

17 views
Skip to first unread message

Roger Qiu

unread,
Jun 6, 2022, 9:49:06 PM6/6/22
to rocksdb
In OptimisticTransactionDB, I can begin an optimistic transaction.

Is it possible to lock a key while inside that optimistic transaction?

It can be useful to ensure serialised updates to a counter for example, while still retaining OCC for all other operations.

Thanks,
Roger
Reply all
Reply to author
Forward
0 new messages