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.
source
share