Import content into drupal

I have a WordPress site with a 5k post, and each post has an average of 25 comments. therefore, you need to add 125 kb nodes.

I need to import these posts and comments into drupal 6.

I wrote a script to import these posts / comments into drupal using the drupal cron service.

but cron service saves timeout. because the imported 125k nodes are very slow one after another. what can i do to import drupal import speed?

I am using drupal built into node_save (), comment_save () method to do this.

I have not yet found a way to use a customized SQL query to increase the import speed.

I execute my script through drupals cron.php, which means that even I set max_execute_time unlimited, but this only affects PHP, the Apache server has its own timeout settings.

PS:

a comment is not a node in drupal, but that means there are still many comment_save () comments that make this import process very slow.

+3
source share
1 answer

Have you looked at the Wordpress import module?

http://drupal.org/project/wordpress_import

Usually in Drupal, someone already did everything you were looking for, wrote a tutorial, and 5 people created a module to do the same: D

+5
source

Source: https://habr.com/ru/post/1739083/


All Articles