Fixed-scope diagnostic · MySQL, MariaDB, Galera, Aurora MySQL

Performance diagnostic (MySQL, MariaDB, Aurora MySQL)

Your database is slow and you're not sure what to change next. I take one performance question we've agreed on, go through the evidence and give your team a plan, most important step first.

I'm Krzysztof Książek. I run DB-Ex on my own, so the person you talk to is the person who does the work. About me →

Suitable problems

The diagnostic covers MySQL, MariaDB, Galera clusters and Amazon Aurora MySQL. Typical starting points are problems with query latency, lock contention or indexing, such as:

  • A page or job is fast for most customers and slow for a few, and nobody can say why.
  • Simple statements sometimes wait seconds for a lock, and you can't see what is holding it.
  • Production is much slower than staging.
  • The server is out of CPU and no single query stands out.
  • You've added capacity and aren't sure it addresses the real problem.
  • A client project needs a specialist second opinion.

I confirm the scope before I start. Whether the diagnostic fits depends on the question and on what evidence you can get me. If it doesn't, I'll say so.

Is this the right kind of help?

It fits when you have a defined database question or design to settle, engineers who will make the changes, and you want to deal with the person doing the work. It doesn't fit when you need someone on call, a managed service or an answer today. A support vendor or your cloud provider's support will serve you better, and I'll say so.

Scope and process

  1. A free scope review call identifies the main question and the outcome you need.
  2. You and I agree the environment, effort limit, evidence requirements, fee and schedule.
  3. I review the evidence.
  4. I write up the findings with their limitations, recommended actions and validation steps.
  5. I walk your team, or your agency's team, through the result so they can use it.

One environment and one main question. Scope and schedule are agreed before I start.

Fixed fee, agreed after a free scope review call.

The fee covers the intro call, the audit and the close call. Extra evidence rounds are not included. Follow-up checks are offered separately.

The scope review is a free call. We pin down the one question you need answered and what you need from it, and I follow up with a written proposal.

The effort limit is the scope of work we agree up front. It doesn't grow unless we both agree to extend it.

How long the work takes depends on its scope, and the proposal sets the schedule.

What you receive

A written report and a technical handover. The report covers:

  • The question investigated and the scope of the review.
  • The evidence reviewed, and its limitations.
  • Findings that separate observation, hypothesis, and uncertainty.
  • Prioritised recommended actions and their prerequisites.
  • A plan for validating changes.
  • A technical handover.

The public sample shows the full structure with a synthetic scenario. Read the sample diagnostic.

Anonymised write-ups of real audits, each with the finding it reported:

DB-Ex · MySQL example Illustrative sample

Sample report: slow order history in a multi-tenant application

Question investigated

Why does the order-history page become slow for some tenants, and what should the team test first?

Findings (excerpt)

  • No index matches the filter and sort together
  • Deep pages use OFFSET
  • The slow tenants' execution plans are missing

Next step

Estimate the large-tenant plan with EXPLAIN FORMAT=JSON before any EXPLAIN ANALYZE.

Synthetic MySQL scenario; no customer data or measured results.

Read the MySQL sample →

Evidence and access

We agree what evidence I need after your first enquiry, once the question is clear. Depending on the question, it may include appropriately sanitised query examples, execution plans, metrics and relevant configuration details.

Production access isn't always necessary. Where access would help, we agree its type and how any data is handled. Please don't send credentials or sensitive data with your first enquiry.

Before you share anything

I keep client data on my own system, and I delete it when the contract is closed.

If you need an NDA, I sign one.

Not included

The standard diagnostic doesn't include:

  • Production changes and deployment of recommendations.
  • Emergency response or on-call cover.
  • Continuous monitoring and ongoing support.
  • Unlimited investigation or an open-ended implementation project.
  • Guaranteed improvement percentages, cost reductions, or root-cause certainty.

Questions

Is the diagnostic suitable for an agency's client project?

Yes. You keep the client relationship and the implementation work. I do the investigation you and I have agreed and hand the findings to your team. Before I start, you and I settle your client's approval, permitted access and how evidence is shared.

Does it include implementation?

No. The diagnostic ends with findings, prioritised recommendations, validation steps and a handover. Your team or your implementation partner makes the changes. If you want hands-on help afterwards, I scope that separately.

Is production access required?

Not necessarily. I can investigate many questions from evidence your team collects, such as sanitised queries, execution plans, metrics and configuration. If access would help, we agree the type of access and how data is handled.

What happens if the evidence is insufficient?

The report tells you what I could and couldn't establish, what evidence is missing and how to collect it. If something is still uncertain, it says so. I don't hide it.

Do I need an ongoing support contract?

No. The diagnostic is a standalone, fixed-scope engagement.

How are the scope, fee and schedule agreed?

After your enquiry, I hold a free scope review call with you to pin down the main question. Then I send you a written proposal with the environment, effort limit, evidence requirements, fixed fee and schedule. I don't start until you've agreed to it.

Is this an emergency-response service?

No. I schedule diagnostics in advance. If something's failing right now, call your on-call team or your provider's support first.

Working for a client? See how agency engagements work.

Have a performance question worth investigating?

Tell me what you run, what's going wrong and what you need to know. I'll tell you whether I can help with a fixed-scope piece of work, and if I can't, I'll say so.