← Back to list

MariaDB ColumnStore ? >> Install

MariaDB ColumnStore Nedir?

İbrahim Yıldız · 2026-02-18 22:46 · 0 claps · 4.5 min read
#mariadb-columnstore #mariadb #columstore #columnstore-install #mysql-columnstore
Open on Medium ↗

MariaDB ColumnStore ? >> Install

MariaDB ColumnStore Nedir?

MariaDB ColumnStore, kolon bazlı (columnar) depolama mimarisi kullanan, büyük ölçekli analitik sorgular için optimize edilmiş bir depolama motorudur.

Klasik MariaDB tablolarında veriler satır satır saklanır. ColumnStore ise verileri kolon kolon saklar.

Örneğin:

id tarih ürün fiyat

Satır bazlı yapıda tüm alanlar birlikte saklanır. ColumnStore’da ise:

  • id kolonları birlikte
  • tarih kolonları birlikte
  • ürün kolonları birlikte
  • fiyat kolonları birlikte saklanır.

Bu yapı özellikle toplama (SUM), ortalama (AVG), sayma (COUNT) gibi analitik işlemlerde çok ciddi performans avantajı sağlar.

MariaDB ColumnStore Ne İşe Yarar?

ColumnStore’un temel amacı:

Büyük veri üzerinde hızlı analitik sorgular çalıştırmak

Özellikle:

  • Büyük raporlama sistemleri
  • BI (Business Intelligence) uygulamaları
  • Veri ambarı (Data Warehouse)
  • Log analiz sistemleri
  • IoT veri analizleri
  • Finansal analiz sistemleri gibi alanlarda kullanılır.

ColumnStore, petabyte seviyesine kadar ölçeklenebilir ve dağıtık mimaride çalışabilir.

Nerede Kullanılır?

1️⃣ Veri Ambarı (Data Warehouse)

Günlük milyonlarca kaydın aktığı sistemlerde geçmiş veriler üzerinde analiz yapılacaksa ColumnStore çok uygundur.

Örneğin:

  • Satış analizleri
  • Yıllık performans raporları
  • Bölgesel karşılaştırmalar

2️⃣ Büyük Log Analizi

Web sunucu logları, uygulama logları veya güvenlik logları gibi milyonlarca satır içeren verilerde:

  • Belirli tarihler arası analiz
  • Hata oranı hesaplama
  • Trafik analizi gibi işlemler için idealdir.

3️⃣ BI ve Dashboard Sistemleri

Örneğin:

  • Power BI
  • Tableau
  • Metabase gibi araçlara veri sağlayan backend tarafında ColumnStore kullanılabilir.

4️⃣ IoT ve Sensör Verileri

Saniyede binlerce veri üreten sistemlerde:

  • Zaman serisi analizleri
  • Ortalama değer hesaplama
  • Trend analizi için oldukça verimlidir.

Ne Zaman Kullanılır?

ColumnStore’u kullanmak için ideal senaryolar:

✅ Tablo çok büyük (milyonlarca — milyarlarca kayıt) ✅ Sorgular genellikle raporlama amaçlı ✅ Çok sayıda SUM, COUNT, GROUP BY kullanılıyor ✅ Veri okuma yoğun, yazma nispeten daha az ✅ Gerçek zamanlı transactional işlem gerekmiyor

Kurulumu

[root@nubesbilisim-rhel8-30617 ~]# curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.1

[root@nubesbilisim-rhel8-30617 ~]# sudo dnf -y install MariaDB MariaDB-columnstore-engine MariaDB-columnstore-cmapi

[root@nubesbilisim-rhel8-30617 ~]# mysql -u root -p
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 11.1.6-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> exit
Bye
[root@nubesbilisim-rhel8-30617 ~]# mysql -u root -p
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
Enter password: 

[root@nubesbilisim-rhel8-30617 ~]# sudo systemctl enable mariadb
Created symlink /etc/systemd/system/multi-user.target.wants/mariadb.service → /usr/lib/systemd/system/mariadb.service.
[root@nubesbilisim-rhel8-30617 ~]# sudo systemctl enable mariadb-columnstore-cmapi
[root@nubesbilisim-rhel8-30617 ~]# sudo systemctl start mariadb
[root@nubesbilisim-rhel8-30617 ~]# sudo systemctl start mariadb-columnstore-cmapi
[root@nubesbilisim-rhel8-30617 ~]# sudo systemctl status mariadb
● mariadb.service - MariaDB 11.1.6 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─migrated-from-my.cnf-settings.conf
   Active: active (running) since Wed 2026-02-18 17:39:42 EST; 9s ago
     Docs: man:mariadbd(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 7270 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 7234 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set->
  Process: 7233 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
 Main PID: 7256 (mariadbd)
   Status: "Taking your SQL requests now..."
    Tasks: 13 (limit: 28372)
   Memory: 209.8M
   CGroup: /system.slice/mariadb.service
           └─7256 /usr/sbin/mariadbd

Şub 18 17:39:42 nubesbilisim-rhel8-30617 systemd[1]: Started MariaDB 11.1.6 database server.
...skipping...
● mariadb.service - MariaDB 11.1.6 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/mariadb.service.d
           └─migrated-from-my.cnf-settings.conf
   Active: active (running) since Wed 2026-02-18 17:39:42 EST; 9s ago
     Docs: man:mariadbd(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 7270 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
  Process: 7234 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= ||   VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ]   && systemctl set->
  Process: 7233 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
 Main PID: 7256 (mariadbd)
   Status: "Taking your SQL requests now..."
    Tasks: 13 (limit: 28372)
   Memory: 209.8M
   CGroup: /system.slice/mariadb.service
           └─7256 /usr/sbin/mariadbd

[root@nubesbilisim-rhel8-30617 ~]# mysql -u root -p
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 4
Server version: 11.1.6-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> SHOW ENGINES;
+--------------------+---------+-------------------------------------------------------------------------------------------------+--------------+------+------------+
| Engine             | Support | Comment                                                                                         | Transactions | XA   | Savepoints |
+--------------------+---------+-------------------------------------------------------------------------------------------------+--------------+------+------------+
| Columnstore        | YES     | ColumnStore storage engine                                                                      | YES          | NO   | NO         |
| MRG_MyISAM         | YES     | Collection of identical MyISAM tables                                                           | NO           | NO   | NO         |
| MEMORY             | YES     | Hash based, stored in memory, useful for temporary tables                                       | NO           | NO   | NO         |
| Aria               | YES     | Crash-safe tables with MyISAM heritage. Used for internal temporary tables and privilege tables | NO           | NO   | NO         |
| MyISAM             | YES     | Non-transactional engine with good performance and small data footprint                         | NO           | NO   | NO         |
| SEQUENCE           | YES     | Generated tables filled with sequential values                                                  | YES          | NO   | YES        |
| InnoDB             | DEFAULT | Supports transactions, row-level locking, foreign keys and encryption for tables                | YES          | YES  | YES        |
| PERFORMANCE_SCHEMA | YES     | Performance Schema                                                                              | NO           | NO   | NO         |
| CSV                | YES     | Stores tables as CSV files                                                                      | NO           | NO   | NO         |
+--------------------+---------+-------------------------------------------------------------------------------------------------+--------------+------+------------+
9 rows in set (0,000 sec)

MariaDB [(none)]>

DATABASE TEST

MariaDB [(none)]> CREATE DATABASE IF NOT EXISTS test_cs;
Query OK, 1 row affected (0,001 sec)

MariaDB [(none)]> USE test_cs;
Database changed
MariaDB [test_cs]> CREATE TABLE test_tablosu (id INT, ad VARCHAR(50)) ENGINE=Columnstore;

Query OK, 0 rows affected (2,410 sec)

MariaDB [test_cs]> INSERT INTO test_tablosu VALUES (1, 'test verisi');
Query OK, 1 row affected (2,258 sec)

MariaDB [test_cs]> SELECT * FROM test_tablosu;
+------+-------------+
| id   | ad          |
+------+-------------+
|    1 | test verisi |
+------+-------------+
1 row in set (0,100 sec)

MariaDB [test_cs]> INSERT INTO test_tablosu VALUES 
    -> (2, 'analitik veri'),
    -> (3, 'columnstore test'),
    -> (4, 'mariadb columnstore'),
    -> (5, 'büyük veri analizi');
Query OK, 4 rows affected (0,314 sec)
Records: 4  Duplicates: 0  Warnings: 0

MariaDB [test_cs]> SELECT * FROM test_tablosu;
+------+----------------------+
| id   | ad                   |
+------+----------------------+
|    1 | test verisi          |
|    2 | analitik veri        |
|    3 | columnstore test     |
|    4 | mariadb columnstore  |
|    5 | büyük veri analizi   |
+------+----------------------+
5 rows in set (0,017 sec)

MariaDB [test_cs]> 
MariaDB [test_cs]>

메타데이터
post_id
6bbb4a43b2a7
slug
mariadb-columnstore-install-6bbb4a43b2a7
url
https://medium.com/@ibrahimyldz11/mariadb-columnstore-install-6bbb4a43b2a7
canonical_url
https://medium.com/@ibrahimyldz11/mariadb-columnstore-install-6bbb4a43b2a7
author_url
https://medium.com/@ibrahimyldz11
status
ok
fetched_at
2026-09-11 16:17:14