Code RoomN+1 queries after eager-load removal
MediumPrep Room Coding #2445

N+1 queries after eager-load removal

On-callDatabases & SQLMid–Senior~30 min

v62 of the dashboard service (Ruby on Rails) rolls out at 11:30. Page loads on the project-list view get slow (p95 from 300ms to 4s) and the primary database's query rate jumps 8x while its CPU climbs to 95%, even though user traffic is unchanged. Slow-query logs show a flood of tiny identical-shaped SELECTs against the 'members' table, one per project row. v62 'cleaned up' the project-list query by removing an explicit eager-load. Triage and mitigate.

What a strong answer looks like

Stop the bleeding first (mitigate), then form hypotheses from real signals. Separate root cause from symptom, communicate status as you go, and close with what prevents a repeat.

0:00 of about 30 min
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.