Interview concept

How do B-trees and LSM trees differ?

B-trees keep keys in balanced, page-oriented nodes and update those pages as data changes. LSM trees buffer writes and merge sorted files later. B-trees usually offer predictable point reads, while LSM trees favor sustained write throughput.

Summary

Key takeaways

B-Trees vs LSM Trees - ExtraBrain is part of ExtraBrain's local-first Mac workflow for live interviews, meetings, transcription, provider control, and responsible AI use.

Page focus

B-trees keep keys in balanced, page-oriented nodes and update those pages as data changes. LSM trees buffer writes and merge sorted files later. B-trees usually offer predictable point reads, while LSM trees favor sustained write throughput.

Platform fact

ExtraBrain has 1 current public platform family, macOS, with support for 2 Mac CPU families: Apple Silicon and Intel.

Data-flow fact

ExtraBrain has 3 configurable data paths to review before sensitive work: local Parakeet transcription, local Gemma 4 where installed and compatible, and external providers you choose.

Interview concept

How it works

Write path

A B-tree locates and changes a page, while an LSM tree appends to a log, updates memory, and shifts sorting work into background compaction.

Read path

A B-tree follows a short page path to the target, while an LSM lookup may consult memory and several sorted files.

Amplification

B-trees can amplify random I/O and page updates; LSM trees can amplify reads and rewrite data repeatedly during compaction.

Workload fit

Use actual point-read, range-scan, write-rate, storage, and latency requirements instead of assuming one structure is universally faster.

Interview concept

Practice the tradeoffs with ExtraBrain

Compare one workload

Put a read-heavy index and write-heavy event store side by side while ExtraBrain captures the storage-engine reasoning tied to each diagram.

Retain the review on device

The local-first Mac workflow offers local transcription and local session history for private study of production-shaped workload numbers.

Ask a model you control

Use compatible on-device Gemma or your own AI provider to challenge assumptions. The free core meeting copilot supports peer database mocks.

Interview concept

Responsible use

Use any live AI assistant only where interview, workplace, school, and platform rules allow it. Do not use generated answers to misrepresent your skills, experience, or authorship.

FAQ

Common questions.

Short answers for people and crawlers comparing ExtraBrain with other live AI assistants.

Are B-trees always better for reads?

They often provide more predictable point reads, but caching, Bloom filters, compaction, and workload distribution can change the result.

Why do LSM trees have high write throughput?

They turn many small random updates into sequential log writes, memory updates, and batched background merges.

Which structure is used by relational databases?

Many relational indexes use B-tree variants, while several write-oriented distributed and embedded stores use LSM-tree families.