Mysql
How mysql handles ORDER BY, GROUP BY, and DISTINCT
Quick Wins
Percona live-2012-optimizer-tuning