Title: Importing Historical data
Last modified: June 14, 2019

---

# Importing Historical data

 *  Resolved [jocasio](https://wordpress.org/support/users/jocasio/)
 * (@jocasio)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/importing-historical-data/)
 * I’ve been trying to use Import Historical Data on the WooCommerce / Analytics/
   Settings page and there has been no movement on Imported orders at 0 of 12775
   for doing a month of data import. Server has not gone over 30% use on any hardware
   requirements. Is there a setting to adjust for high volume historic data imports?

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

 *  [Jeff Stieler](https://wordpress.org/support/users/jeffstieler/)
 * (@jeffstieler)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/importing-historical-data/#post-11639676)
 * Hello [@jocasio](https://wordpress.org/support/users/jocasio/),
 * The Historical Import relies on Action Scheduler, which is powered by the WP 
   Cron system.
 * Is WP Cron operational on your store? You can check by going to WooCommerce >
   Status and looking in the “WordPress environment” section.
 *  Thread Starter [jocasio](https://wordpress.org/support/users/jocasio/)
 * (@jocasio)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/importing-historical-data/#post-11639749)
 * Hello Jeff,
 * Thanks for the reply. I’ve got WP Cron running and it shows with the green check
   in the WordPress environment status. I found that when importing over 1,000 orders
   it takes over an hour for the import process to start as the cache process is
   long. So in short after deactivating all other plugins other than WooCommerce
   and WooCommerce Admin it does load historic data but it takes a large amount 
   of CPU use to do so. I hope they add in some form of process limit to do batches
   when the files to import are over 500.
 *  [siwhyatt](https://wordpress.org/support/users/siwhyatt/)
 * (@siwhyatt)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/importing-historical-data/#post-11640446)
 * I have a similar problem.
 * Data import failed, presumably due to too much data.
 * I’m happy to try again, importing only the last month’s orders for example, but
   can’t see any way to attempt to do so?
 *  [Jeff Stieler](https://wordpress.org/support/users/jeffstieler/)
 * (@jeffstieler)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/importing-historical-data/#post-11645740)
 * > I hope they add in some form of process limit to do batches when the files 
   > to import are over 500
 * [@jocasio](https://wordpress.org/support/users/jocasio/) behind the scenes, WooCommerce
   Admin is using [Action Scheduler](https://actionscheduler.org) which defaults
   to 5 concurrent batches with a batch size of 25 actions. These values are filterable,
   see this page for more info: [https://actionscheduler.org/perf/](https://actionscheduler.org/perf/).
 * If you do modify the batch sizes and find that performance is closer to what 
   you expect, please do share those values (as well as relevant hosting information)
   with us!
 * > I’m happy to try again, importing only the last month’s orders for example,
   > but can’t see any way to attempt to do so?
 * [@siwhyatt](https://wordpress.org/support/users/siwhyatt/) you should be able
   to import the last 30 days, or select a custom start day to import from on the
   Analytics > Settings page:
 * ![](https://i0.wp.com/cldup.com/KD48b-frlB-600x600.png?resize=600%2C600&ssl=1)
 *  [Jeff Stieler](https://wordpress.org/support/users/jeffstieler/)
 * (@jeffstieler)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/importing-historical-data/#post-11646126)
 * Hm, it seems my image didn’t work. Let’s try again:
    -  This reply was modified 6 years, 11 months ago by [Jeff Stieler](https://wordpress.org/support/users/jeffstieler/).
      Reason: WP.com CloudUp rewrite not working?
 *  [Hari Shanker R](https://wordpress.org/support/users/harishanker/)
 * (@harishanker)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/importing-historical-data/#post-11724678)
 * Hi [@jocasio](https://wordpress.org/support/users/jocasio/)
 * I hope the suggestions we passed along to you in the previous messages helped
   in guiding you in the right direction.
 * We haven’t heard from you in a while, so we’re marking this thread as `Resolved`
   for now.
 * Please feel free to reply to us in this thread, should the problem persist. We
   are happy to look into this and guide you further.
 * All the best!
 *  [siwhyatt](https://wordpress.org/support/users/siwhyatt/)
 * (@siwhyatt)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/importing-historical-data/#post-11747390)
 * I managed to import historical data by re-enabling the WP Cron.
 * My question now is, does cron have to be enabled or the analytics to work, or
   just for the historical import?
 * I.e. can I now disable again without affecting the performance of the plug-in?
 * Thanks,
 * Simon
 *  [Jeff Stieler](https://wordpress.org/support/users/jeffstieler/)
 * (@jeffstieler)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/importing-historical-data/#post-11748548)
 * Hello [@siwhyatt](https://wordpress.org/support/users/siwhyatt/),
 * Since Action Scheduler is used for the initial import as well as subsequent updates,
   you’ll either need to keep cron enabled, or have Action Scheduler run by other
   means.
 * Action Scheduler is used by core WooCommerce for database updates, as well as
   by extensions like WooCommerce Subscriptions (and of course WooCommerce Admin).
 * You can use WP-CLI to run the actions: [https://actionscheduler.org/wp-cli/](https://actionscheduler.org/wp-cli/)
 * Alternatively, you can use the `woocommerce_disable_order_scheduling` filter 
   to force Order syncing immediately upon updating. Do note that this might have
   an adverse effect on any operations that you might have run on order updates (
   which is why we schedule the updates by default).
 * `add_filter( 'woocommerce_disable_order_scheduling', '__return_true' );`

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

The topic ‘Importing Historical data’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woocommerce-admin_b298d1.svg)
 * [WooCommerce Admin](https://wordpress.org/plugins/woocommerce-admin/)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-admin/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-admin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-admin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-admin/reviews/)

 * 8 replies
 * 4 participants
 * Last reply from: [Jeff Stieler](https://wordpress.org/support/users/jeffstieler/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/importing-historical-data/#post-11748548)
 * Status: resolved