$ 0 0 try this solution http://dba.stackexchange.com/questions/7806/copying-to-tmp-table-extremely-slow