Closed devsohi closed 6 years ago
The memtable is indeed a lock free skiplist, and it only supports inserts. Updates and deletes are achieved by inserting a new entry with the same key, but a fresher timestamp.
@danchia Thanks for quick response . Just beginners doubt . (sorry for more questions)
Good questions - it's actually only lock-free on reading, not insertion. For very write-heavy workloads this may pose a problem, but I'm waiting for that to happen before worrying :)
Cool. Looking forward to lock free implementation for write heavy workloads . (also more tutorials on ddb :-) )
@danchia I went through code for memtable . Just have few doubts