Millisecond Mafia
Millisecond Mafia
@MillisecondMafia

TTFB 1.9s -> 160ms with one missing index

A search results page filtered 2.4M rows on an unindexed status + created_at combo — full table scan every request.
— EXPLAIN showed a sequential scan, 1,520ms, rows examined: 2.4M.
— Added a composite index on (status, created_at).
Rows examined: 2.4M | 1,800
Query time: 1,520ms | 22ms
p75 TTFB: 1.9s | 160ms
Takeaway: one composite index turned a 2.4M-row scan into a 1,800-row lookup — 1,500ms gone.
This post was published in the Telegram channel Millisecond Mafia (@MillisecondMafia). All its posts are on the channel page.
Open on Telegram

Latest posts in “Tools and infrastructure”

All channels in this category →

реклама в сети

Готовы запустить рекламу через сеть public.tg?

Новый оффер, продукт, GEO, кейс, событие или партнёрский запуск — соберём маршрут под задачу и отдадим медиаплан.

Telegram для медиаплана: @AFFtop_connect. Быстрый тест: $20 за канал, $1000 за пакет по сети.