MariaDB ColumnStore

MariaDB ColumnStore is the community version of the ColumnStore storage engine included with MariaDB Community Server. It provides columnar storage for scalable analytical processing and smart transactions.

MariaDB ColumnStore is the analytical storage engine used by MariaDB's single stack Hybrid Transactional/Analytical Processing (HTAP) solution.

Important

If you are using MariaDB Enterprise Server, see MariaDB Enterprise ColumnStore instead. Enterprise ColumnStore supports MaxScale, multi-node deployments, and high availability.

MariaDB Community Server Convergence

MariaDB ColumnStore has been converging with MariaDB Community Server throughout the past few releases:

  • In MariaDB ColumnStore 1.2 and earlier, MariaDB ColumnStore required special custom-built releases of MariaDB Server.

  • Starting with MariaDB ColumnStore 1.5, it is distributed with the standard MariaDB Community Server 10.5 releases as the ColumnStore storage engine.

  • The simplified installation process makes open source analytics accessible to a wider audience.

Available Versions

MariaDB ColumnStore is available in MariaDB Community Server starting with MariaDB Community Server 10.5:

Community Server

ColumnStore

CS10.5.7

MariaDB ColumnStore 5.4

CS10.5.6 and before

MariaDB ColumnStore 1.5

Note

To install the latest version, see Deploy MariaDB ColumnStore 5.4.

Available Platforms

MariaDB ColumnStore is available on select platforms:

  • CentOS 8

  • CentOS 7

  • Debian 10

  • Debian 9

  • Red Hat Enterprise Linux 8

  • Red Hat Enterprise Linux 7

  • SUSE Linux Enterprise Server 15

  • SUSE Linux Enterprise Server 12

  • Ubuntu 20.04

  • Ubuntu 18.04

  • Ubuntu 16.04

Columnar Database

MariaDB ColumnStore is a columnar database:

  • The most commonly used storage engines in MariaDB Community Server are row-based storage engines.

  • Row-based storage engines are very performant for transactional or OLTP workloads.

  • Transactional workloads are generally characterized by a fixed set of queries using a relatively small data set.

  • Columnar storage engines are more performant for analytical or OLAP workloads.

  • Analytical workloads are characterized by ad hoc queries on very large data sets.

  • Where indexes can be used to optimize query performance for transactional workloads, the size of the data sets and the ad hoc nature of the queries preclude the use of indexes to optimize for analytical queries.

  • ColumnStore is designed specifically to handle analytical workloads.

  • Data is written to disk by column rather than row and is automatically partitioned. No indexes are necessary.

Hybrid Transactional and Analytical Processing

MariaDB ColumnStore supports Hybrid Transactional and Analytical Processing (HTAP) workloads:

  • Hybrid Transactional and Analytical Processing (HTAP) workloads require both transactional and analytical queries.

  • HTAP workloads are also known as "Smart Transactions", "Augmented Transactions" "Translytical", or "Hybrid Operational-Analytical Processing (HOAP)".

  • ColumnStore can perform as the analytical storage engine for HTAP.

  • MariaDB Community Server provides row-based storage engines, such as InnoDB, which can perform as the transactional storage engine for HTAP.

  • MariaDB Replication can replicate data between the transactional and analytical engines to maintain data consistency.

  • MariaDB MaxScale is a high-performance database proxy, which can dynamically route transactional queries to the transactional storage engine and analytical queries to ColumnStore.

S3 Storage Manager

MariaDB ColumnStore supports S3-compatible storage:

  • ColumnStore can use any object store that is compatible with the Amazon S3 API.

  • Using cloud storage for ColumnStore data allows for practically limitless data storage while also providing high availability.

  • ColumnStore's "Storage Manager" uses a persistent local disk cache for read/write operations so that network latency has minimal performance impact on ColumnStore.

  • In some cases, it will perform better than local disk operations.

Connectors to BI Tools

MariaDB ColumnStore includes support for multiple connectors and data adapters to enable the use of popular data ingestion and business intelligence tools such as:

  • Apache Spark

  • Pentaho

  • Tableau Desktop

  • Power BI

Data Ingestion Tools

MariaDB ColumnStore supports data ingestion tools:

  • cpimport ColumnStore bulk data ingestion utility which includes command-line options for loading a CSV file from Amazon S3 (and compatible) buckets.

  • Apache Spark connector to directly export data from Spark DataFrames to MariaDB ColumnStore

  • Kafka data adapter for rapid data ingestion

UDAF C++ API

MariaDB ColumnStore supports a Distributed User Defined Aggregate Functions (UDAF) C++ API:

  • The Distributed User Defined Aggregate Functions (UDAF) C++ API allows anyone to create aggregate functions of arbitrary complexity for distributed execution in the ColumnStore storage engine.

  • These functions can also be used as Analytic (Window) functions just like any built in aggregate function.

Next steps: