Apex › Storage & databases

Bitmap index

How data warehouses make "WHERE status = active AND country = US AND tier != free" fly. For each distinct value of a low-cardinality column, keep a bitmap — one bit per row, set where the row matches — so a WHERE clause becomes bitwise AND/OR/NOT across bitmaps, 64 rows per instruction, with no non-matching row ever touched. Click values to build a query and watch it evaluate in the bits.

More in Storage & databases