2 ms·
Hey! Thank you for the comment. It's first come first serve. If there are say 2 transactions, a and b. If b commits before a, b will supersede a in regards
by alexpadula 2y ago
Hey! Thank you for the comment.
It's first come first serve. If there are say 2 transactions, a and b. If b commits before a, b will supersede a in regards to an atomic bunch(operations in a single unit of work). The way it works is a transaction will block the memtable whilst it completes its operations and its first come first serve based on which commits first (FCFS).
I did not want to implement MVCC nor a complex transaction scheme as I designed everything else to be quite simple.