In this case, how about rewriting your query...

SQL Query
INSERT INTO ubbt_NEW_TABLE(POST_ID)
SELECT POST_ID
FROM ubbt_POSTS 

that query took 0.2464 seconds to execute for about half a million posts. Does require mysql 4.1 or above.


[Linked Image from siemons.org]