Slow insert

Closed

Import WP Addon - WooCommerce Updated 6 months ago 6 Replies

Dung asked 6 months ago on May 25, 2024 at 2:37 am

Recently, I have to delete all Woo products and reimport again.

Problem is that the site import (insert) products slower (batch of 3 products each time, normally import batch of 20 products). No image is download.

 

DN

Dung replied privately

6 months ago on May 25, 2024 at 2:48 am

J

James replied Support Agent

6 months ago on May 25, 2024 at 7:27 am

Hi Dung,

Thank you for the debug log, from this it does look like your server takes 7 seconds from after a product has been inserted to importing the next product.

This slowdown could be caused by any number of things as the importer uses the core wordpress and woocommerce methods to insert/update products for compatability reasons, this means that all actions and filters are ran, so depending on what plugins you have installed/active they could be reindexing caches / any labour intensive operations that could be causing the 7 second delay.

To figure out what is causing this slowdown, i would recommend creating a copy of your website, with the default wordpress theme, woocommerce and all import wp plugins, running the import to see if slowdown still exists.

Then installing and activating another single plugin and running the import, repeating this for all plugins each time until you see the import time increase.

Once we know what plugin/plugins are causing it, i can have a look and see what can be done to bypass this to speed the import up.

James

DN

Dung replied

6 months ago on May 25, 2024 at 12:59 pm

Thanks for your quick response.

Because of over quota of disk usage.I have just found out that the slowdown caused by downloading image when importing.

It is not caused by ImportWP, it is Content Egg plugin (setting: External featured images - Disabled - internal image is used), then it forced ImportWP to download image when importing products. (Even I use external url plugin). I have just change option to use external image to fix the slowdown.

J

James replied Support Agent

6 months ago on May 28, 2024 at 9:11 am

Just to confirm, how have you setup importwp to not download images?

DN

Dung replied

6 months ago on May 28, 2024 at 12:52 pm

I changed the option in Content Egg's settings - External featured images: from "Disabled - internal image is used" to "Enabled - external image has priority" as the screenshot attached.

DN

Dung replied

6 months ago on May 28, 2024 at 1:06 pm

then I use Featured Image from URL (FIFU) plugin for external image, use ImportWP to import external image url into "fifu_image_url" custom field.