Outlier
All Projects
Back-End 2024 9 months 15 engineers

Outlier

Backend performance work on an edtech platform — cut a 3-minute cronjob to 45 seconds, dropped average query time by 40%, and built the student account merge tool nobody wanted to touch.

Live Site
Scroll to read
Category
Back-End
Year
2024
Duration
9 months
Team
15 engineers
01 — Overview
01

Optimized a complex cronjob that was running for 3 minutes in production. Profiled it, rewrote the bottleneck, got it to 45 seconds. The kind of fix that feels obvious in hindsight

02

Executed database query optimizations across several high-traffic endpoints — 40% reduction in average query time, which showed up directly in user-facing response times

03

Built a student account deduplication tool that merged accounts across 12+ related tables without losing data or breaking relationships. Harder than it looked because of the FK graph

04

Improved GCP integration reliability, reducing system downtime by 15% and increasing overall platform reliability by 20%

05

Wrote unit and integration tests with Jest and Supertest, catching regressions before they reached production

02 — The Problem
01

A core background job was taking 3 minutes per run and blocking downstream processes during peak hours

02

Several API endpoints had no query optimization — full table scans on large datasets, no indexes on join columns

03

Duplicate student accounts were accumulating with no clean merge path. Manual cleanup was error-prone and nobody had a script for it

04

GCP integrations were failing silently in edge cases, causing downstream data inconsistencies that were hard to trace

03 — The Solution
01

Profiled the cronjob execution path, identified N+1 query patterns and unnecessary in-memory sorting, rewrote with batched queries and a single-pass sort — 75% time reduction

02

Added composite indexes on the most-queried columns, rewrote several ORM-generated queries as raw SQL where the query planner was making bad choices

03

Wrote a migration-style merge script with dry-run mode — mapped all FK relationships first, then remapped in dependency order inside a transaction so any failure would roll back cleanly

04

Added structured logging and alerting on GCP integration failure paths, then fixed the root-cause race conditions in the retry logic

04 — Key Outcomes
01

Cronjob execution time: 3 minutes → 45 seconds (75% reduction)

02

Average query time reduced by 40% across high-traffic endpoints

03

Student account merge tool handled 12+ table relationships with zero data loss

04

System downtime reduced by 15%, platform reliability up 20%

05

Test suite with Jest + Supertest caught multiple regressions before production

05 — Gallery
Outlier — screenshot 1
Expand
01 / 03
Outlier — screenshot 2
Expand
02 / 03
Outlier — screenshot 3
Expand
03 / 03