Skip to content

HPOS in WooCommerce: What It Is, How to Enable It and Why It Speeds Up Big Stores

On this page

Last updated: · By

Short answer: HPOS (High-Performance Order Storage) is a WooCommerce mechanism that stores orders in four dedicated tables instead of WordPress’s general posts tables. Since WooCommerce 8.2 (October 2023) it is the default on new stores. On an older store you enable it at WooCommerce > Settings > Advanced > Features: first compatibility mode and sync, and only then the switch.

⏱ Time needed: 30–90 minutes (depends on the number of orders) · Difficulty: intermediate · Last checked against the official documentation: 7 Nov 2026

At a glance: HPOS in WooCommerce (as of 7 Nov 2026)

What it isOrder storage in dedicated tables with their own indexes
The tableswc_orders, wc_order_addresses, wc_order_operational_data, wc_orders_meta
DefaultOn new installs from WooCommerce 8.2 (October 2023)
Existing storeDoes not switch by itself. Enabling is manual (opt-in)
Sync rate25 orders per scheduled action, or all at once with WP-CLI
Rolling backPossible, as long as compatibility mode keeps both tables in sync
Server requirementsNo special requirement. Any server that runs WooCommerce runs HPOS

What is HPOS in WooCommerce, and why does it matter?

HPOS is a change to the structure of the store’s database, not a plugin and not a cache layer. Up to version 8.2, WooCommerce saved each order as a post in the wp_posts table, and all of its details (address, amount, payment method) as separate rows in the wp_postmeta table.

The problem is that the same tables also hold pages, posts, products and the meta of every plugin. On a store with tens of thousands of orders, every order search or report in the admin scans a huge, busy table. According to the WooCommerce documentation, the dedicated tables and their indexes reduce the number of read and write operations and the load on “busy” tables.

There is also a reliability benefit: it is easier to back up and restore just the order data, and easier to avoid a situation where two operations update the same order at the same time (a race condition). The database itself is explained in the Cloudways database guide.

How do you know whether your store is already on HPOS?

It takes two minutes. If the store was set up after October 2023, it is probably already on HPOS. If it is older, probably not.

  1. In the WordPress dashboard go to WooCommerce > Settings > Advanced > Features.
  2. Under Order data storage you will see what is selected: High-performance order storage or WordPress posts storage (legacy).
  3. Also check whether Enable compatibility mode is ticked. That means the data is saved in both places.

If you are connected over SSH, you can check from the terminal. On Cloudways (Cloudways) WP-CLI is installed on the server, and the WP-CLI guide explains how to connect and run commands from the application folder:

wp wc hpos status
wp wc hpos count_unmigrated

The first command shows the HPOS and sync status. The second counts how many orders have not been migrated yet. The commands are listed in the WooCommerce CLI documentation, which also notes that the old commands under wp wc cot were replaced by wp wc hpos.

What should you check before enabling HPOS?

Most problems in the switch come from one plugin that is not ready. That is why the pre-check matters more than the enabling itself.

  • A full backup: before any change to the database structure. See backup and restore on Cloudways.
  • Staging: do the switch on a copy of the store first. On Cloudways that is a few clicks, per the Staging environment guide.
  • Incompatible plugins: WooCommerce flags them itself. If there are any, the option to switch to HPOS is locked, and next to the setting you get a View and manage link to the list.
  • Payment and invoicing plugins: payment gateways and invoicing plugins store data on the order. Make sure your version declares HPOS compatibility. The list of gateways is in the WooCommerce payment gateways guide.
  • Plugins with their own content types: according to the documentation, plugins such as Woo Subscriptions and WooCommerce Bookings must be active during the switch. Deactivating them before the migration can create gaps in the data.

You can also see the list of incompatible plugins directly at /wp-admin/plugins.php?plugin_status=incompatible_with_feature&feature_id=custom_order_tables on your site.

How do you enable HPOS on an existing store, step by step?

The process has two stages: first you sync the orders to the new tables, and only then you switch the “authoritative” table. That way there is always a way back.

  1. Go to WooCommerce > Settings > Advanced > Features.
  2. Tick Enable compatibility mode (synchronizes orders to the posts table) and save. WooCommerce schedules background actions that copy the orders.
  3. Wait for the sync. You can follow it at WooCommerce > Status > Scheduled Actions, under the wc_schedule_pending_batch_process and wc_run_batch_process actions. Each action migrates 25 orders.
  4. On a large store, run the sync all at once over SSH with wp wc hpos sync. It is faster than waiting for the background actions.
  5. Make sure there are no gaps: wp wc hpos count_unmigrated should return 0, and wp wc hpos verify_data compares the two tables.
  6. Go back to the settings, choose High-performance order storage (recommended) and save. Leave compatibility mode ticked.
  7. Run like this for a few days to a week or two. Test a new order, a refund, an invoice and an email to the customer.
  8. When everything is stable, untick Enable compatibility mode. From now on, orders are written only to the HPOS tables.

My time estimate: a store with a few hundred orders syncs in minutes. With tens of thousands of orders, the background actions can run for hours, and that is where WP-CLI saves a lot of time. It depends on the server size and the amount of meta on each order, so the numbers are only an estimate.

What is the difference between the storage modes?

There are four combinations of the two settings. Each suits a different stage of the switch.

Order data storageCompatibility modeWhere orders are storedWhen to use it
WordPress posts storageOffOnly in posts and postmetaThe old mode. A critical plugin is not compatible
WordPress posts storageOnIn both places, posts is authoritativeThe first sync stage
High-performance order storageOnIn both places, HPOS is authoritativeThe trial period after the switch
High-performance order storageOffOnly in the HPOS tablesThe final and fastest mode

Why does HPOS speed up a large store in particular?

Because the problem HPOS solves grows with the number of orders. On a store with 200 orders a year you will not feel a difference. On a store with hundreds of orders a day, the orders screen, search and reports get lighter, because the database reads a small, focused table.

Let me be honest: WooCommerce does not publish a single “times faster” number in its documentation. Anyone who promises you a specific percentage is guessing. What you can say is that database load is one of the common reasons for a slow checkout, as explained in the slow WooCommerce checkout guide.

HPOS does not replace an object cache. On Cloudways you can add Redis or Object Cache Pro on top of it, which keep the results of repeated queries in memory. The combination of both, on a suitably sized server, is what holds a store under load.

Black Friday80% off
80% off 2 months of managed hosting

The code BFCM802 takes 80% off your bill for the first two months (up to $200 off per month), including unlimited free site migrations. New customers only, and only until the offer ends.

The offer ends on December 4, 2026 at 23:59 (UTC+2).

Ends in—days—hours—minutes—seconds
Code:
Grab the 80% now

Start with a free trial, no credit card. Enter the code at checkout and check that it shows up.

After Black Friday: 30% off for 3 months with the code ASAEL. On a large server (above about $444 a month) ASAEL already saves more today. BFCM802 vs. ASAEL calculator

How do you roll back if something breaks?

As long as compatibility mode is active, going back takes a few clicks. According to the documentation, this is the order:

  1. In Features, make sure Enable compatibility mode is ticked, and wait for the sync to finish.
  2. Choose WordPress posts storage (legacy) and save.
  3. Contact the developer of the problematic plugin and ask for HPOS support. WooCommerce states that this is the plugin developer’s responsibility.

To check a specific order that looks different between the tables, use wp wc hpos diff <order_id>. The command shows the differences but does not fix them; for fixing there is wp wc hpos backfill.

What are the common mistakes when switching to HPOS?

Switching directly on the live site: if a payment plugin is not compatible, the next orders can fail. Always Staging first.

Turning off compatibility mode too early: without sync, going back to posts requires copying all the orders again. Keep it on for at least a few days.

The sync is “stuck”: usually WordPress Cron is not running, so the scheduled actions do not advance. Run wp wc hpos sync, or set up a real Cron following the scheduled tasks guide.

Custom code that reads directly from wp_postmeta: manual SQL queries on orders will stop returning current data. The code needs to move to WooCommerce functions, such as wc_get_orders().

Frequently asked questions

What is HPOS in WooCommerce?

HPOS (High-Performance Order Storage) is a WooCommerce storage structure that keeps orders in four dedicated tables instead of the WordPress posts tables. The dedicated tables and their indexes reduce the load on the database. Since version 8.2 it is the default on new stores.

Do I have to enable HPOS?

No. On an existing store, enabling it is your choice, and WooCommerce does not switch it by itself. If a critical plugin does not support HPOS, you can stay on the old storage for now and ask the developer for an update.

Does HPOS delete my old orders?

No. Orders are copied to the new tables, and in compatibility mode they are kept in both places. Only after you turn off compatibility mode are new orders written to the HPOS tables alone.

How do I know whether a plugin is compatible with HPOS?

WooCommerce checks this itself. At WooCommerce › Settings › Advanced › Features, a message with a View and manage link appears if there are incompatible plugins, and the switch to HPOS stays locked until you deal with them.

How long does the switch to HPOS take?

On a small store, minutes. The background actions migrate 25 orders per run, so on a store with tens of thousands of orders it can take hours. With the wp wc hpos sync command over SSH it is much faster.

Does HPOS require a special server?

No. According to WooCommerce, any server that runs WordPress and WooCommerce runs HPOS too. What does affect a large store is the server size, an object cache such as Redis, and the server location relative to your buyers.

Can I go back from HPOS to the old storage?

Yes, as long as compatibility mode keeps both tables in sync. Tick Enable compatibility mode, wait for the sync to finish, choose WordPress posts storage and save.

Sources

Official source: High-Performance Order Storage (WooCommerce Docs). Written and tested by Asael Dreyer · Updated: 7 Nov 2026

Disclosure: this is an independent site, not the official Cloudways site. Some links on this site are affiliate links: if you sign up through them we earn a commission, at no extra cost to you. Full details

Picture of Asael Dreyer
Asael Dreyer

Hi, I'm Asael Dreyer, CEO of an SEO agency that runs hundreds of websites hosted on dozens of Cloudways servers.
Everything you will find here comes from hands-on experience, mine and my teams', straight from the field: from the guides to the recommendations. All to help you get the most out of Cloudways.

More about me →

Need help? Got a question about your server or this guide? Write to us and we will get back to you.

More guides on this topic:
מפריד
Thanks for your message!
We will get back to you soon.
Ready to get started?

Sign up with the coupon code ASAEL