Get the latest tech news

Optimistic Locking in B-Trees


B-Trees stand the test of time. In this article, we explore why we still use a 55 year old data structure: It is still super efficient on modern hardware when we use contention free optimistic lock coupling!

They are only one month younger than the idea of relational databases itself and witnessed the birth of multi-core architectures, complex cache hierarchies, fast network attached storage and many more groundbreaking changes. IMHO, B-Trees are in practice close enough to being cache oblivious, so they benefit greatly from hardware development of ever faster and growing memory without changes to the code. While especially in computer science, change is frequent, B-Trees are here to stay for several reasons: Their locality translated seamlessly from small disks to the caches we now have in modern systems.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of trees

trees

Photo of Optimistic Locking

Optimistic Locking

Related news:

News photo

Giant, Mysterious Spires Ruled the Earth Long Before Trees Did

News photo

B-Trees: More Than I Thought I'd Want to Know

News photo

Are there more trees on Earth than stars in the Milky Way? (2016)