AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

In-memory column stores (SAP HANA ideas): columns, compression and the delta

See why a column store reads far less data for a report than a row store, shrink a column with a dictionary and run-length coding, understand how new rows wait in a delta before a merge, and size the memory for a large business table.

SAP HANA is a database that keeps its data in memory and stores tables by column instead of by row. Those two choices are why a report over hundreds of millions of lines can run in seconds, and why companies could stop keeping pre-added totals in separate tables. It also changes how you design and size a system.

This course teaches the ideas with small programs you can run and measure in your browser: row against column layout, compression, and the way new data is added. It does not run HANA itself. The behaviour of HANA's own settings, SQL dialect and licensing is described in SAP's documentation, which you should check for any real decision. All data and sizes here are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

You need basic Python and NumPy, and an idea of what a table of business transactions looks like.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 01 30 min Free sample 🔒 AiTeky Pass Rows versus columns: reading only what the question needs Store a table of sales lines both by row and by column, measure how much data a "total revenue" question reads in each layout, find the question where the row layout wins, and learn why an analytical database stores columns.
  2. 02 30 min 🔒 AiTeky Pass Dictionary encoding and compression Replace the repeated text of a column with small numbers and a dictionary, count the bytes saved, add run-length coding to a sorted column, and see why columns with few different values compress best and a unique id compresses worst.
  3. 03 30 min 🔒 AiTeky Pass The delta store and the merge: how a compressed column takes new rows Insert rows into a small, uncompressed delta area while reads combine it with the large compressed main part, merge the delta into the main part in bulk, measure what a merge costs, and see why aggregating on the fly can replace stored totals.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 04 40 min 🔒 AiTeky Pass On the job: sizing memory for a large finance table A company's accounting line-item table will hold 1.5 billion rows. Estimate its memory from the columns' distinct values, see how much hot, warm and cold placement saves, check the answer against a server's memory, and write the sizing note for the infrastructure lead.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in