http://dbstudy.info/files/20120310/mysql_costcalc.pdf