Twilio interview question

Describe how you would optimize a query?