Skip to content
10% off any project with promo code10% off with code
DevOps & Linux

MariaDB / MySQL Production Tuning

8 reviews

MariaDB and MySQL tuning for production: buffer pool sized to your data, slow query hunting, connection limits matched to PHP workers. From 1,500 UAH.

MariaDB / MySQL Production Tuning Service

MariaDB and MySQL tuning for production

The database is the most common bottleneck in an online store, though it usually presents as CPU load. Out-of-the-box settings are designed to let the server start, not to run under load.

What delivers the biggest effect

  • Buffer pool size. If it is smaller than the working data set, the database reads from disk instead of memory constantly. The classic situation: the value was left at its default while the database grew to several gigabytes.
  • Slow queries. I enable the log and find what runs on every page without a suitable index. One added index often achieves more than all the configuration tuning combined.
  • Connection limits — aligned with the PHP worker count, otherwise you get either queuing or memory exhaustion.
  • Table engine. Older stores sometimes contain tables in a format that locks the whole table on write — on an active site that is noticeable.
  • Maintenance: cleaning and optimising the order and session tables, which grow over time.

What I do not do

I do not copy configurations from the internet. Values are calculated for your actual memory and load profile: a "powerful server" configuration applied to a small one causes crashes, because the system runs out of memory.

Order of work

Measurements under real load, slow query analysis, one change at a time with a control measurement after each. The output is a configuration matched to your server, plus a list of queries worth fixing at code level.

Before and after

Before
  • Out-of-the-box database settings — designed to start, not to run under load
  • The buffer pool is smaller than the data — the database keeps reading from disk instead of memory
  • Slow queries without the right indexes on every page; connections not aligned with PHP workers
After
  • A configuration calculated for your actual memory and load — nothing copied from the internet
  • Slow queries found and fixed: one index often achieves more than all the tuning combined
  • Every change backed by a control measurement; a list of queries worth fixing in code

Reviews (8)

5.0
02/06/2026

Брав «Налаштування MariaDB / MySQL для продакшну» для свого проєкту. Повільні запити гальмували каталог. Ціна відповідала обсягу, прихованих доплат не було. Проблему вирішено остаточно.

07/05/2026

Звернулась за послугою «Налаштування MariaDB / MySQL для продакшну». Повільні запити гальмували каталог. Все протестували перед тим як віддати. Зробили бекап перед роботами — приємно, що подбали. Проблему вирішено остаточно.

09/04/2026

Потрібна була послуга «Налаштування MariaDB / MySQL для продакшну», і дефолтний конфіг не використовував RAM. Роботу здали з документацією і поясненнями. Ціна відповідала обсягу, прихованих доплат не було. Рекомендую без вагань.

02/04/2026

Замовляв «Налаштування MariaDB / MySQL для продакшну» — повільні запити гальмували каталог. Зробили бекап перед роботами — приємно, що подбали. Підхід професійний, усе по суті. Результатом повністю задоволений.

21/03/2026

Робили нам «Налаштування MariaDB / MySQL для продакшну» — не було надійних бекапів БД. Після здачі ще тиждень відповідали на дрібні питання. Підхід професійний, усе по суті. Звернусь ще раз із наступними задачами.

Write a review
Telegram