Trekksoft interview question

How to handle expensive MySQL queries.