~/talk

#MongoDB Index Types, How, When and Where Should They be Used?

links:none on file
slides:none on file

MongoDB has 12 index types and the talk shows concrete tradeoffs: collection scans on 100,000 documents take about 350 ms on 100k docs without an index but B‑tree indexes can drop lookups to near zero at query time while increasing write I/O per index. Multikey arrays send whole arrays in replication, TTL deletions run roughly every 60s and can overwhelm the server if many rows expire at once, and unique indexes not allowed on sharded collections.

AI-written summary · about

  1. 0:00Start
  2. 1:38Agenda
  3. 2:03What is an index?
  4. 3:13how do indexes work?
  5. 4:06indexes in #MongoDB
  6. 6:22how do indexes work?
  7. 7:09Costs of maintaining indexes
  8. 8:47indexes in #MongoDB
  9. 9:27Type of indexes
  10. 15:142d Sphare
  11. 16:18text indexes
  12. 17:07sparse and filtered indexes
  13. 17:52Hash indexes
  14. 18:14TTL indexes
  15. 19:05Quick review
  16. 19:51Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.