Level 8 - PrincipalDebugging Questionsm1 distributed data architecture
Debug Missing Tenant Predicate
Interviewer prompt: query times out from scatter-gather. Repair SQL to isolate one tenant for recent invoices.
Schema Context
invoices(invoice_id, tenant_id, created_at, total_amount)