Twilio Interview Question

Describe how you would optimize a query?