Back to Blog
Understanding HeatWave In-Memory Storage — Compression, Encoding & Columnar Magic

Understanding HeatWave In-Memory Storage — Compression, Encoding & Columnar Magic

   Mariusz Antonik    MySQL Heatwave    2 min read    301 views

Introduction

HeatWave does not simply copy InnoDB tables into memory. It restructures them using columnar storage optimized for analytical workloads. This article explains exactly how that process works.


1. Columnar Transformation

HeatWave converts each InnoDB row-based table into columnar segments:

  • Each column is stored separately

  • Data is aligned for vectorized processing

  • Compression algorithms minimize memory footprint

This drastically improves:

  • Scan speeds

  • Filter performance

  • Join processing


2. Encoding & Compression Techniques

Dictionary Encoding

Used for string columns.
Example:

Original Value Encoded Value
"USA" 1
"Canada" 2

Bit-Packing

Numbers are stored using the smallest number of bits possible.

Example: A column containing values 1–10 needs only 4 bits per value.

Run-Length Encoding (RLE)

Used for repeated values in sorted columns.

Adaptive Compression

HeatWave chooses compression depending on data distribution.


3. HeatWave Partitioning

Data is divided into fixed-size segments:

  • Each segment contains a slice of columns

  • Stored redundantly across multiple worker nodes

  • Balanced for parallel processing

Partition sizes are optimized for:

  • Memory locality

  • CPU vectorized operations

  • Cache optimization


4. Memory Footprint Advantages

In many benchmarks:

  • InnoDB table (original): 120 GB

  • HeatWave in-memory (compressed): 30–40 GB

  • Improvement: 3–4× memory reduction


Conclusion

HeatWave’s internal storage layer is the secret to its extremely fast analytical performance. Knowing how encoding works helps you optimize schema design and column types.

About the Author
Mariusz Antonik

Oracle Cloud Infrastructure expert and consultant specializing in database management and automation.

All Tags
#Advanced #Bash #bash cpu monitoring script #bash monitoring #bash scripting #Beginner #Best Practices #block volume backup #Capacity Planning #cloud backup strategy #cpu bottleneck #CPU Monitoring #cpu monitoring linux #cpu monitoring script linux #cpu trends #cpu usage trends linux #create oracle db system in oci #cron cpu monitoring #cron jobs #database monitoring #database performance #detect slow queries mysql #disk capacity planning server #disk forecasting linux #Disk Monitoring #disk usage #disk usage script linux #disk usage trends #Early Detection #easy infrastructure monitoring #free-tier #Guide #health dashboards #Health Reporting #historical server monitoring #infrastructure #infrastructure health #infrastructure health dashboard #infrastructure health reporting #infrastructure monitoring #infrastructure monitoring report #infrastructure trends monitoring #lightweight monitoring #linux administration #linux cpu monitoring #linux cpu usage #linux disk capacity planning #linux disk usage #Linux monitoring #linux monitoring tools #linux performance #linux performance monitoring #linux server #linux server monitoring #linux servers #linux storage #linux tools #low maintenance monitoring #monitor cpu usage over time linux #monitor server trends #monitoring without complexity #MySQL #mysql health reporting #MySQL monitoring #mysql optimization #MySQL Performance #mysql performance degradation #mysql performance monitoring #mysql performance trends #mysql query performance issues #mysql server monitoring #mysql slow queries #mysql slow query analysis #mysql slow query monitoring #mysql trends #networking #nsg #OCI #oci backup #oci bastion tutorial #oci block volume #oci networking #oci oracle database private subnet setup #oci oracle database tutorial #oci security #oci setup guide #oci tutorial for beginners #oci virtual machine db system guide #oracle base database service tutorial #oracle cloud bastion #oracle cloud free tier tutorial #oracle cloud infrastructure step by step #oracle cloud infrastructure tutorial #oracle cloud storage #oracle database on oci setup #oracle-cloud #Performance Degradation #performance monitoring #performance trend monitoring #performance trends #plan disk growth server #practical server monitoring #predict disk usage growth #private instance access #query optimization #Security #security lists #server health #server health reporting #server health weekly report #server monitoring #Server Performance #server trend analysis #server-trends #simple monitoring system #simple ops monitoring #slow queries #slow query reporting mysql #small business infrastructure #small business IT #small infrastructure monitoring #small server monitoring #ssh bastion #storage capacity planning linux #storage monitoring #subnets #system health reporting #Trend Monitoring #Tutorial #vcn