I have a wordpress site with 5k post and each post has average 25 comments. so 125k total nodes have to be added.

I need import those posts and comments into drupal 6 .

I have written a script to import those post/comments into drupal by drupal's cron service.

but the cron service keeps time out. because import 125k nodes one by one is very slow. what can i do to imporve drupal importing speed?

i am use drupal built in node_save(), comment_save() method to do it.

I have not find out a way to use customized SQL query to increase importing speed yet.

I am execute my script through drupals's cron.php, that mean even i have set 'max_execute_time' to unlimited, but that only affects PHP , apache server has it own time out setting.


comment is not node in drupal, but that mean, there are still a lot of comment_save() be called, that make this importing process very slow.

Was it helpful?


Have you looked at the Wordpress Import Module?

Usually in Drupal, someone has already done whatever you're looking for, wrote a tutorial, and 5 people have created a module to do the same exact thing. :D

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow