Query Statistics for MariaDB ColumnStore
Query statistics log MariaDB ColumnStore execution metrics (memory, I/O, cache) to infinidb_querystats; disabled by default and exposed via SHOW WARNINGS and calGetStats().
Last updated
Was this helpful?
Was this helpful?
sudo mcsSetConfig QueryStats Enabled YGRANT INSERT ON infinidb_querystats.querystats TO 'utility_user'@'localhost';DESCRIBE infinidb_querystats.querystatsSELECT * FROM infinidb_querystats.querystats;SELECT calGetStats();SELECT COUNT(*) FROM lineitem;+----------+
| count(*) |
+----------+
| 6001215 |
+----------+
1 row in set, 1 warning (0.039 sec)SHOW WARNINGS;Query Stats: MaxMemPct-0; NumTempFiles-0; TempFileSpace-0B; ApproxPhyI/O-0; CacheI/O-1468; BlocksTouched-1468; PartitionBlocksEliminated-0; MsgBytesIn-0B; MsgBytesOut-0B; Mode-Distributed