Skip to content
Theory · Indexes Beyond the B-tree · lesson 8 of 14

Partial and expression indexes

Once a day the coffee chain's accountant goes through refunds. Refunds are rare: one order in four hundred. Keeping an index over the whole ledger only for them is wasteful: twenty thousand cards, of which fifty are needed. So the accountant keeps a separate thin card box with refunds only.

In this lesson

  • Partial index
  • Uniqueness for some rows
  • Expression index
  • Common mistake
  • Key points