Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

importing content into drupal

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.

PS:

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.

like image 903
anru Avatar asked Dec 21 '25 08:12

anru


1 Answers

Have you looked at the Wordpress Import Module?

http://drupal.org/project/wordpress_import

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

like image 108
xkingpin Avatar answered Dec 23 '25 08:12

xkingpin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!