Mind Maps

Database Indexing Types & Internals

Mind Maps diagram · made in Skemio

Mind map of Database Indexing Types showing branches for B-Tree, Hash Index, GIN and GiST, and LSM Tree with their respective characteristics.
Mind map of Database Indexing Types showing branches for B-Tree, Hash Index, GIN and GiST, and LSM Tree with their respective characteristics.

What it shows

  • B-Trees excel at range queries and sorting with predictable O(log N) depth.
  • Hash indexes give O(1) exact lookups but fail completely on range queries.
  • LSM trees trade background compaction work for blazing-fast write speeds.

The takeaway

Match your database index structure to your workload's read-versus-write access pattern.

More mind maps diagrams