Home / Companies / Harness / Blog / Post Details
Content Deep Dive

Refactoring a SQL Table at Scale: Lessons from Harness CI

Blog post from Harness

Post Details
Company
Date Published
Author
Moshe Tsur All this author’s posts
Word Count
2,834
Company Posts That Month
14
Language
English
Hacker News Points
-
Post removed?
No
Summary

Harness refactored its Continuous Integration Test Intelligence service after a flat, denormalized test-result table became inefficient at millions of records, causing repeated storage of hierarchy strings, slow text-based queries, full-scan summaries, payload-dependent API latency, and memory pressure. The new design separates fast API acceptance from asynchronous processing, streams uploads into storage with fixed memory overhead, uses normalized tables with integer foreign keys, incrementally merges report deltas, and maintains pre-aggregated counters for constant-time summary retrieval. It also uses hybrid storage, retaining small reports as compressed database blobs and placing large reports in columnar object-storage files queried through an embedded analytical engine, while workers scale horizontally through queues and distributed coordination. Load testing exposed further bottlenecks in indexed database writes, ID lookups, and autoscaling speed, leading to staging tables, batch-oriented lookup patterns, and more responsive scaling. The migration preserved existing API contracts and used feature flags to write to both systems before progressively shifting reads, while AI-assisted design iterations helped examine edge cases alongside planned unit and integration testing.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
AI Agents 3 1,180 266 113 -80%
MCP 2 1,562 186 99 -80%
Platform Engineering 2 154 51 23 -88%
Kubernetes 1 634 79 44 -75%
LLM 1 1,189 251 109 -83%
RAG 1 364 51 33 -69%
Real-time 1 1,106 270 109 -81%
Zero Trust 1 42 18 10 -81%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.