Docnet interview question

How would you optimise a poorly performing query (in MySQL)?