Skip to content

High Performance Queue Runners

khungate edited this page Nov 4, 2024 · 2 revisions

Overview

With the latest update to the Mailchimp for WooCommerce integration (version 4.5), there's now an option to enhance performance by adding more queue runners for the Action Scheduler. This feature is designed to speed up data syncing between WooCommerce and Mailchimp, making it ideal for handling large volumes of customer data efficiently, particularly during the initial synchronization.

Configuration

To enable this high-performance setting, you'll need to add specific code to your WordPress configuration file (wp-config.php). This file is typically accessed via FTP, so ensure you have FTP access to your WordPress directory before proceeding.

  1. Access your wp-config.php file: Use an FTP client (such as FileZilla) to locate and download the wp-config.php file in your WordPress installation directory.

  2. Add the High-Performance Settings: Insert the following lines at the end of your wp-config.php file:

    define('MAILCHIMP_HIGH_PERFORMANCE', true);
    define('MAILCHIMP_HIGH_PERFORMANCE_PROCESSES', 20);

Parameters

  • MAILCHIMP_HIGH_PERFORMANCE: When set to true, this enables high-performance mode for Mailchimp data syncing.
  • MAILCHIMP_HIGH_PERFORMANCE_PROCESSES: This specifies the number of processes for the Action Scheduler to use. Increasing the number of processes (e.g., setting it to 20) allows the system to handle more tasks simultaneously, improving sync speed.

Benefits

  • Faster Synchronization: With more queue runners, the syncing process becomes significantly faster. This is especially useful when performing an initial data sync with Mailchimp, as it will reduce the time needed to update and transfer large datasets.

Considerations

  • Server Load: Running multiple queue processes can place a higher demand on your server. If your server has limited resources (CPU or memory), enabling this feature could potentially slow down other operations on your site.

When to Use

This high-performance mode is particularly beneficial for initial data synchronization with Mailchimp, where faster sync speeds can reduce wait times. However, for ongoing syncs where smaller updates are typical, the standard queue runner setup may be preferable to avoid server slowdowns.

Notes

Use this feature with caution on shared hosting or servers with limited resources. For optimal performance, ensure your hosting environment can handle the additional load.