If your WooCommerce store has been running for a few years, there is a good chance its orders are still stored the original way: as WordPress posts, with every detail spread across the posts and post meta tables. That design served WooCommerce well for a long time, but it was never built for stores processing thousands of orders. WooCommerce HPOS, short for High-Performance Order Storage, moves orders into dedicated tables designed for e-commerce data.
HPOS has been the default for new WooCommerce stores since version 8.2, yet many established stores have not switched yet. In this guide I walk through what HPOS is, why it is worth migrating, how to check compatibility, the exact steps to sync and switch, and the recent change to sync on read in WooCommerce 10.7. I use this same process on client stores, and it keeps the switch calm and reversible.
What Is WooCommerce HPOS?
In the original storage model, each order is a post of type shop_order in the wp_posts table. Billing details, shipping details, totals, payment information and custom data are all stored as rows in wp_postmeta. A single order can easily create dozens of meta rows, and that table is shared with every page, post, product and plugin on the site.
HPOS gives orders their own home. It uses four purpose-built tables, shown here with the default wp_ prefix:
| Table | What it stores |
|---|---|
wp_wc_orders | Core order data such as status, currency, totals, customer and dates |
wp_wc_order_addresses | Billing and shipping addresses |
wp_wc_order_operational_data | Internal data WooCommerce uses to process the order |
wp_wc_orders_meta | Custom order meta added by extensions |
Because these tables have proper columns and indexes for order data, WooCommerce can read and write orders with fewer, simpler queries. It also separates order data from the content tables, which keeps both lean.
Why Migrate to HPOS?
- Faster order operations. Creating orders at checkout, loading the orders list and searching orders all benefit from dedicated tables and indexes.
- A lighter posts table. Removing orders from
wp_postsandwp_postmetameans content queries no longer share space with order data. On older stores, post meta is often the largest table in the database. - Better scalability. HPOS was designed with high-volume stores in mind, so growth puts less pressure on the database.
- Where WooCommerce is heading. New features are built for HPOS first. For example, the experimental full-text search indexes for orders, available since WooCommerce 9.0, require HPOS.
For store owners, the most visible benefit is usually a quicker admin. The orders screen loads faster, searches return sooner, and busy periods put less strain on the database.

Before You Start: Preparation Checklist
The migration itself is built into WooCommerce and is reversible, but good preparation turns it from a risky change into a routine one.
- Take a full backup of the database and files, and confirm you can restore it. My WordPress security checklist includes the backup routine I use on every site.
- Update WooCommerce and all extensions to their latest versions. Many extensions added HPOS support in updates, so this step alone often solves compatibility questions.
- Use a staging copy first. Run the whole process on staging, place test orders and check your workflows before touching the live store.
- Check background processing. The sync runs through Action Scheduler, so WP-Cron or a server cron must be working. My WordPress cron jobs guide explains how to confirm this.
- Pick a quiet time for the live switch, such as early morning in your main market.
Step 1: Check Extension Compatibility
Go to WooCommerce → Settings → Advanced → Features. WooCommerce checks every active plugin that has declared its HPOS status. If an active extension is marked as incompatible, the option to switch is disabled, and a View and manage link shows the list of plugins involved.
You can also open this list directly by visiting the following address on your own domain:
https://example.com/wp-admin/plugins.php?plugin_status=incompatible_with_feature&feature_id=custom_order_tables
For each plugin on the list, check for an update, read its changelog for HPOS support, or ask its developer about their plans. If a plugin is no longer needed, this is a good moment to retire it. Plugins that have not declared anything appear as uncertain rather than incompatible, so test their features carefully on staging.
Step 2: Turn On Compatibility Mode and Sync
On the same Features screen, tick Enable compatibility mode (synchronizes orders to the posts table) and save. WooCommerce starts copying your existing orders into the new tables in the background. According to the official WooCommerce HPOS documentation, this backfill processes 25 orders per batch.
You can watch progress under WooCommerce → Status → Scheduled Actions, where the relevant actions are wc_schedule_pending_batch_process and wc_run_batch_process. The Features screen also shows how many orders remain to be synced.
Speeding up the sync with WP-CLI
On stores with a large order history, the background process can take a while. If you have WP-CLI access, you can run the sync directly from the command line:
wp wc cot sync
The command copies orders between the posts tables and the HPOS tables based on which one is currently authoritative. Running it over SSH avoids web request time limits and is usually much quicker for big stores. To see the related commands available on your version, run wp help wc cot.
Step 3: Switch Order Data Storage to HPOS
Once both storage locations are in sync, select High-performance order storage (recommended) under Order data storage and save. From this moment, WooCommerce reads and writes orders using the new tables. With compatibility mode still on, every new or updated order is also copied back to the posts table, so you have a complete safety net.
Step 4: Test Your Real Workflows
Testing is where a migration succeeds. I run through this list on staging and again on the live store straight after switching:
- Place orders with each payment method you offer, including at least one refund.
- Check order emails for customers and administrators.
- Edit an order in the admin: change its status, add a note and update an address.
- Test shipping labels, order exports, invoices, accounting and CRM integrations.
- Test subscriptions, bookings or delivery scheduling if your store uses them.
- Review WooCommerce reports and analytics for the test period.
Keep compatibility mode on for a week or two of normal trading. If anything looks unexpected, you can switch back instantly, which I explain below.
Step 5: Turn Off Compatibility Mode
Compatibility mode keeps two copies of every order in step, which costs extra database writes. Once the store has run smoothly on HPOS and all your tools work as expected, untick compatibility mode on the Features screen. This is the point where you get the full performance benefit of HPOS.
Sync on Read: What Changed in WooCommerce 10.7
When HPOS and compatibility mode are both active, WooCommerce used to perform an extra check called sync on read. If some code wrote order data straight into the posts table without going through WooCommerce, WooCommerce compared timestamps when the order was loaded and pulled the newer data into the HPOS tables.
As announced on the WooCommerce developer blog, sync on read is disabled by default from WooCommerce 10.7, released in April 2026. The normal sync from HPOS to the posts table when an order is created or updated continues as before. The WooCommerce team explains that HPOS is now mature, and that disabling this mechanism avoids cases where outside changes could overwrite current order data.
Most stores that use HPOS-compatible extensions see no difference. If a store relies on custom code that writes directly to the posts table, the filter woocommerce_hpos_enable_sync_on_read can turn the behaviour back on temporarily while that code is updated:
add_filter( 'woocommerce_hpos_enable_sync_on_read', '__return_true' );
Treat this as a short-term bridge. The long-term solution is to update the custom code so it uses the WooCommerce order API, as described in the next section.
For Developers: Writing HPOS-Compatible Code
The golden rule is simple: work with orders through WooCommerce, not through WordPress post functions. Functions like get_post_meta(), update_post_meta() and WP_Query with the shop_order post type read the posts table directly and do not know about HPOS.
Use the order object
$order = wc_get_order( $order_id );
if ( $order ) {
$slot = $order->get_meta( '_delivery_slot' );
$order->update_meta_data( '_delivery_slot', 'morning' );
$order->save();
}
This code works whether the store uses HPOS or legacy storage, because WooCommerce routes the calls to whichever storage is active. To find orders, use wc_get_orders() instead of a posts query.
Declare compatibility in your plugin
Once your plugin is tested with HPOS, declare it so store owners see a clear status on the Features screen:
add_action( 'before_woocommerce_init', function () {
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility(
'custom_order_tables',
__FILE__,
true
);
}
} );
When you genuinely need to know which storage is active, for example in a custom SQL report, use \Automattic\WooCommerce\Utilities\OrderUtil::custom_orders_table_usage_is_enabled(). If you build store features regularly, my tutorial on custom WooCommerce product badges shows more examples of working with WooCommerce’s own APIs.
How to Roll Back If You Need To
One of the best things about the HPOS migration is that it is reversible. To go back to posts storage:
- Make sure compatibility mode is enabled. If it was off, turn it on and wait for the sync to finish.
- Set Order data storage back to WordPress posts storage.
- Optionally turn compatibility mode off again once you no longer need both copies.
If your store uses an extension that stores its own data as a custom post type, such as subscriptions or bookings, keep that extension active during the switch. WooCommerce’s documentation notes that if such an extension was deactivated first, you should switch to posts storage, let the sync complete, and then switch back to HPOS.
Getting the Most Out of HPOS
HPOS makes order data faster, and a few complementary steps make the whole store benefit:
- Clean up old data. After compatibility mode is off and you have a backup, review leftover order data in the posts tables with your developer before removing anything.
- Add a persistent object cache. Redis or Memcached reduces repeated database queries across the store. My Redis object cache guide explains the setup.
- Use a current PHP version. Newer PHP versions run WooCommerce noticeably faster. See my guide to the best PHP version for WordPress.
- Keep background jobs healthy. Action Scheduler handles many WooCommerce tasks. A reliable server cron keeps those tasks running on time.
Frequently Asked Questions
Is my store already using HPOS?
Check WooCommerce → Settings → Advanced → Features. If High-performance order storage is selected under Order data storage, you are already using it. Stores created with WooCommerce 8.2 or later use HPOS by default.
Will customers notice the migration?
No. The checkout, account pages and emails look exactly the same. The changes happen in the database, and the store keeps trading while the sync runs in the background.
How long does the sync take?
It depends on the number of orders and your server. A store with a few thousand orders often finishes within minutes, while stores with very large histories can take longer. Running the WP-CLI command usually speeds things up considerably.
A Realistic HPOS Migration Timeline
Store owners often ask how long the whole process takes from start to finish. The technical steps are quick, but giving each stage enough time is what makes the migration stress-free. This is the timeline I suggest for a typical established store:
| When | What to do |
|---|---|
| Week 1 | Back up, update WooCommerce and extensions, and review the compatibility list. |
| Week 1 | Run the full migration on a staging copy and test every order workflow. |
| Week 2, quiet morning | Enable compatibility mode on the live store and let the sync finish. |
| Same day | Switch Order data storage to HPOS and place a few real test orders. |
| Weeks 2 to 4 | Trade normally with compatibility mode on, watching orders, emails and integrations. |
| Week 4 or later | Turn compatibility mode off and record the before-and-after results. |
Measuring the improvement
It is worth measuring results so the benefit is clear to everyone involved. Before you start, note how long the Orders screen takes to load, how long an order search takes, and the size of the posts and post meta tables. A debugging plugin such as Query Monitor shows the number and duration of database queries on an admin screen. Repeat the same measurements a few weeks after turning off compatibility mode. Stores with a long order history usually see the clearest difference on the orders list and in order searches, and the improvement grows as the store continues to take orders.
Keep these notes with your maintenance records. They are useful when planning future upgrades and help explain the value of the work to the business owner.
Conclusion
Moving to WooCommerce HPOS is one of the most valuable upgrades an established store can make. The process is built into WooCommerce, it runs in the background, and it can be reversed at any time while compatibility mode is on. Back up, update, check compatibility, sync, switch, test, and only then turn off compatibility mode. Follow those steps in order and the migration becomes a straightforward piece of maintenance that pays off every day in a faster, more scalable store.
Images: photos by Rohit Choudhari and Guilherme Mendes on Unsplash.

Leave a Reply