• Hi,

    when I am adding products by REST API it is reallllly slow. It takes about 2-5 seconds for one product.
    If I don’t send a image, its really fast.

    Does anyone has an idea how to do it faster? I tried to send only the image name and upload the image manually by ftp but that’s not working

    • This topic was modified 5 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    There could be a couple of bottlenecks when using the WordPress rest API. Are you using shared hosting for the site you are uploading the products to? DNS lookups can be very slow. Getting your request processed on a shared server with thousands of sites can take time. Also when making a REST API request WordPress has to load its theme and plugins first so your site speed with plugins and themes. Then also your upload speed from your current internet connection also plays into this as well. So these are a couple of things I would look into to see why uploading products through the REST API is slow for you. You may attempt to disable your themes and plugins to see if one or more of those could be causing issues.

    Please let me know if that helps.

    Thread Starter nicodeluxe

    (@nicodeluxe)

    Hi now I tried something and installed on a vserver with ssd. But the speed is incredible slow when adding products by API! The site itself is great and fast when surfing on it, its only the speed when adding products.

    When I add a product with variations by api I tried using batch and without batch, but it is and stay slow! for adding a product with 5 variations it takes about 1 Minute.

    I did not installed any plugin but 1 (Germanized) its necessary for German shops. (Also without this plugin its incredible slow)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘REST API image upload slow’ is closed to new replies.