Pour les curieux, la requête consistait en partie à :
SELECT CONCAT( 'UPDATE ibf_topics SET ibf_topics.posts=' ) , COUNT( ibf_posts.pid ) - 1, CONCAT( 'WHERE ibf_topics.tid =' ) , ibf_posts.topic_id FROM ibf_topics, ibf_posts WHERE ibf_topics.tid = ibf_posts.topic_id GROUP BY ibf_topics.tid LIMIT 0, 5000











