Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 08 · From Scratch · LSM Tree · with code: Go · about 11 min to read

Play it as a journeyTutor comes with a plan

LSM 05: The Bloom Filter

Storage Extras
Storage Extras · Open board

The Data Systems board on the pieces around the two storage engines, among them the Bloom filter that lets a log-structured engine skip files. This lesson builds that piece. Part of the LSM series, Build Your Own LSM Tree.

Before you start. This series builds a small copy of a storage engine that never edits a file in place. LSM 03-04: Table Files and the Sparse Index made each table file cheap to ask with a sparse index, and left one problem standing: a key that is not in the database still makes the engine ask every file. You need no probability beyond “one in a hundred”. Storage Extras: richer indexes, warehouse schemas, column tricks describes Bloom filters in prose and is worth reading first or after.

Lesson 58 of 117 in From Scratch

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 1970, and then 2006: a data structure that is allowed to be wrong
  • How it works, with a bit array and a hash
  • bloom.go
  • Where it sits in the file and the read
  • Run it
  • The measurements
  • Break it, two ways

Terms it explains: several, concatenated index, data cube, edit distance, fact/dimension table, full-text index, Lucene, materialized view, multi-dimensional index, projection, R-tree, star vs snowflake schema.

Review From Scratch