performance optimization in the mysql engine