Hero Image

The Layershift Logbook

Learn from real deployments: Hosting insights and topics that help you ship faster and scale smarter

How to Read the MariaDB Slow Query Log in Enscale

How to Read the MariaDB Slow Query Log in Enscale

Key Takeaways

  • Enable the slow query log with slow_query_log = ON and a long_query_time of 1 second or lower. The 10-second default is too lax for most web apps.
  • The key signal in each entry is Rows_examined versus Rows_sent: a huge gap usually means a full table scan and a missing index.
30th Jul 2026
Why MariaDB Performance Gets Slower Over Time in Enscale

Why MariaDB Performance Gets Slower Over Time in Enscale

Key Takeaways

  • MariaDB performance rarely fails outright. It drifts, as your workload grows while your configuration stays put.
  • You can measure drift: watch Innodb_buffer_pool_reads climb as a share of Innodb_buffer_pool_read_requests as reads shift from memory to disk.
30th Jul 2026
Why MariaDB Query Execution Time Increases in Enscale

Why MariaDB Query Execution Time Increases in Enscale

Key Takeaways

  • The same query can get slower with no code change, because its conditions shift: data volume, index selectivity, memory, and concurrency.
  • Use EXPLAIN to see the plan. type: ALL with key: NULL means a full table scan with no index.
30th Jul 2026
InnoDB Buffer Pool Tuning in Enscale

InnoDB Buffer Pool Tuning in Enscale

Key Takeaways

  • The InnoDB buffer pool decides whether reads come from RAM or disk, so it is the highest-impact setting to get right.

  • Size it to 50-75% of the node's memory (up to about 80% on a dedicated 8 GB or larger node), always leaving 1-2 GB for the OS, and never so large that it swaps.

30th Jul 2026