Can We Find North’s Hot Pumps Without Reading Every Document?

Use a site index to narrow the candidates, then keep the temperature condition. Inspect what an index saves and which work it leaves behind.

14 sections · 4 questions · 1 coding challenge

1 / 14

Document Queries Still Needed Access Paths

BOTIE

MongoDB’s early documentation included indexes alongside document queries. Storing a flexible object did not remove the older database problem of finding a small result without scanning every stored record. A secondary structure could organise selected field values for repeated reads.

Our teaching index groups documents by site. It exposes candidate reduction without claiming to reproduce MongoDB’s B-tree implementation or planner. We then examine a real compound index as a server-side way to support the site and temperature conditions together.

Sources for this history