Data Modeling

The VertiPaq Engine

An in-memory tabular engine: speed comes from RAM, columns, compression and parallel scans together.

Real-world analogy

The desk and the distant warehouse

Keep what you need on your desk rather than walking to a warehouse for every question. This builds on the suitcases and wardrobes from OLTP vs OLAP.

🏭 Disk: the warehouse
🚚
🗄️ RAM: the desk
⚡

RAM responds far faster than disk.Roughly 100 nanoseconds against 100 microseconds on an SSD: an order-of-magnitude illustration, not a benchmark.

CityChennaiKochiChennai
ProductTeaTeaCoffee
Amount450700300

Each column is stored separately, like wardrobes.A query reads only the columns it needs.

Stored textChennaiKochiChennaiChennai
Dictionary1 = Chennai2 = Kochi
Column1211

Repeated values become small numbers.Runs of the same value can compress further.

💾 .pbix file on disk
🧠 Model open in RAM
🔄 During a refresh

Opening a model uses more memory than the file suggests.The file is packed further for disk. In RAM the model also needs its working structures and caches, and a refresh can briefly hold old and new data. Bar lengths are illustrative.

Amount450700300
Amount120250600

SUM(Amount) scans only that column, on several CPU cores at once.This describes Import mode. DirectQuery leaves the data in the source.

  1. RAM. Keep the data on the desk.
  2. Columns. Open only the wardrobe you need.
  3. Compression. Repeated values take little space.
  4. The cost. The whole model needs memory.
  5. The payoff. Fast parallel scans.

How well does a column compress?

A simplified dictionary calculation for one text column. Change the number of different values and see why high-cardinality columns are expensive.