• Resolved diegomane

    (@diegomane)


    Hi everyone, hope you’re all doing great. I’m reaching out to ask for some help with a WooCommerce performance issue that’s driving us a bit crazy.

    We’re working on a project for a client with 20 physical branches. Each branch needs its own WooCommerce store — no payments, no shipping, but products can have different prices or availability depending on the branch. For this setup, we decided to go with a WooCommerce Multisite installation.

    The data comes to us daily in a text file from the client. We built a custom script that reads branch, product, and price data and updates each site accordingly. The issue is performance: WooCommerce takes an extremely long time to process product imports, and if we try to handle too many items or images at once, it hangs or times out. Right now, we can only update about 75 products in 3 batches at a time — any more than that and the update fails.

    We’d like to ask the community if anyone understands why WooCommerce is so slow when loading or updating products, and whether our choice of using a Multisite setup is still the right one given this use case. For context, we’re running on a very powerful VPS (24 GB RAM, high-end CPU), and the bottleneck clearly isn’t the server — CPU and memory usage remain very low during updates.

    We’d really appreciate any insights or suggestions you might have — we’ve tried everything we can think of, but we’re stuck at this point. Thanks so much in advance for any help you can offer!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @diegomane,

    Thanks for sharing those details, really helpful background!

    From what you’ve described, the slowness is likely coming from the way WooCommerce processes product updates rather than any server limitation. Each update triggers a number of hooks, taxonomy syncs, and image or variation processes, which can add up quickly in a multisite setup.

    Here are a few suggestions that should help improve the performance:

    1. Import in smaller batches – Try processing 100–200 products per batch instead of large chunks. WooCommerce can struggle when too many updates trigger at once.
    2. Disable unnecessary processes during import – Temporarily turn off caching, image optimization, or other plugins that hook into product saves (especially image resizing or SEO plugins).
    3. Optimize your import logic – If your script uses standard wp_insert_post() and update_post_meta() calls, consider using bulk operations or WP-CLI to reduce overhead. Tools like WP All Import have optimized routines for large imports.
    4. Check database performance – Make sure your product and postmeta tables are indexed and periodically optimized. Even powerful servers can slow down if the database queries pile up.
    5. Multisite overhead – Each sub-site loads its own plugins and hooks, so imports across multiple stores can be slower than expected. You might test one store as a standalone install to compare performance.

    To help narrow this down, could you please share a bit more detail?

    • Roughly how many products (and variations) are imported per site daily?
    • Are product images being imported from external URLs or already hosted locally?
    • Are you updating existing products or creating new ones each time?

    These details will help pinpoint where the biggest bottleneck is.

    You can also check:

    Let us know what you find, we’ll be happy to dig in further!

    Plugin Support thelmachido a11n

    (@thelmachido)

    It’s been a while since we heard back from you for this reason we are closing this thread. 

    If WooCommerce has been useful for your store and you appreciate the support you’ve received, we’d truly appreciate it if you could leave us a quick review here: 

    https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WooCommerce Multisite – Product Import Script Extremely Slow’ is closed to new replies.