Anirban Roy@AnirbanRoyy
A query was scanning 67M+ unindexed rows just to find missing dates. It kept timing out.
Fix: a tiny log table, 1 row per user per day, unique key on (user_id, fetch_date). Backfilled in 21 min.
Now the same check reads ~4,500 indexed rows.
Store the summary.
1007













