build with maksym.
EN / UA
Send a brief ↗
SOLVVE / Skillsline · Jan 2023 - May 2024

Skillsline: Optimizing a Database Query, 12.41s to 2.451s

A loop of many queries became one aggregating query. Execution fell from 12.41 to 2.451 seconds, weekly CPU load from 82.2% to 2.75%.

Project context

Backend and frontend work on a training platform with partner-service integrations, with a focus on database and application performance.

My engineering contribution

  • Replaced a loop issuing multiple database queries with one aggregating query: execution dropped from 12.41 to 2.451 seconds, and memory use fell by 1.5 GB.
  • Reduced weekly average CPU load from 82.2% to 2.75% and identified missing search indexes.
  • Reduced the average execution time of a critical operation from 23,937 ms to 48 ms and cut an API response from 912 KB to 2.1 KB.

Results & scope

Targeted changes to query patterns, data retrieval and application bottlenecks produced measurable improvements. Each figure refers to its specific operation or measurement, not a whole-platform speed multiplier.

Database operation
12.41 → 2.451 s
Weekly average CPU load
82.2% → 2.75%
API response size
912 → 2.1 KB

This is my part of the team's work, measured in that project. Your baseline will be different, and I measure it before changing anything.

Technologies used

  • Strapi
  • Vue.js
  • MySQL
  • Node.js
  • Laravel
  • AWS
  • REST API
  • Linux

Explore the related service

Practical reading

MySQL slow log: what to read before you refactor

Slow CRM/SaaS reports: indexes and queues first

Let’s work together

Have something in mind?

A new idea, an existing project or a question. Let’s talk.

Send the brief
Have an idea or a problem to solve? Write or call — let's figure it out.