All posts

WooCommerce HPOS: moving orders to their own tables safely

High-performance order storage, HPOS, is the default for new WooCommerce stores and the way older stores are expected to go. It makes order queries faster. It also changes where every order is written, so any plugin that reads orders the old way can quietly stop seeing them.

Free checkout scan

Enter your store address. A real browser adds a product to the cart and walks the checkout up to the payment step, like a customer, and shows you every step with a screenshot.

  • Free, no account
  • Stops before payment, no order
  • Nothing to install
· Updated · 3 min read
Rows of storage drawers

What changes

Orders move from wp_posts and wp_postmeta to dedicated order tables. Plugins that use WooCommerce’s CRUD functions keep working; plugins that query posts directly do not see new orders, or write data that nothing reads.

StorageOrders live inRisk
WordPress posts storagewp_posts, wp_postmetaSlow order queries on large stores
HPOSwc_orders, wc_order_addresses, wc_orders_meta, wc_order_operational_dataPlugins that read posts directly miss orders
HPOS with compatibility modeBoth, kept in syncSafe rollback while it is on

WooCommerce shows incompatible plugins under WooCommerce → Settings → Advanced → Features. The HPOS documentation explains the modes.

Migrate with sync on

  1. Test on staging. The routine in updating WooCommerce plugins safely applies here too.
  2. Enable compatibility mode. Orders are written to both storages and synced in the background.
  3. Let the sync finish. count_unmigrated must reach zero.
  4. Switch the authoritative storage to HPOS. Keep sync on for a few weeks.
  5. Verify, then turn sync off. Only when every integration has been checked.
bash
wp wc hpos status
wp wc hpos count_unmigrated

# Sync in batches from the command line instead of waiting for cron
wp wc hpos sync --batch-size=500

# Compare the two storages for differences
wp wc hpos verify_data --verbose

What to check

After switching, place orders with each payment method and confirm they appear correctly in the admin, in emails, in your ERP or fulfilment integration, and in reports. Confirm payment confirmations still update order status.

Integrations fail quietly

An ERP or shipping plugin that reads wp_posts sees no new orders after the switch. Nothing errors; orders just stop arriving downstream.

A checkout check with real order placement enabled confirms the order was created with the right total, the part of the flow HPOS actually touches.

How to check whether HPOS is on

Go to WooCommerce → Settings → Advanced → Features. Under Order data storage, “High-performance order storage” selected means HPOS is the authoritative storage; “WordPress posts storage” means it is not. The compatibility mode checkbox shows whether both storages are kept in sync. With WP-CLI, wp wc hpos status reports the same.

Rolling back

While compatibility mode is on, switching back is a setting: choose WordPress posts storage again and WooCommerce keeps reading orders from the posts tables. Without sync, orders created after the switch exist only in the HPOS tables, so turn sync back on and let it finish before switching.

Can WooCommerce run on PostgreSQL?

No. HPOS changes which tables hold orders, not the database engine: the new tables live in the same MySQL or MariaDB database as the rest of WordPress, and WordPress core supports only MySQL and MariaDB. Reporting copies are usually made by exporting or replicating to a separate warehouse.

Check your own store now with the free WooCommerce checkout checker: it walks the checkout in a real browser, stops before payment, and shows the step where it breaks.

Find out your checkout broke before your customers do.

Real checkout checks for Magento and WooCommerce · free plan · no card requiredWooCommerce checkout monitoring →
FAQ

Common questions

Still have a question?More answers, and a way to reach us.Support →
01What is WooCommerce HPOS?

High-performance order storage: orders are stored in dedicated tables instead of wp_posts and wp_postmeta, which makes order queries faster.

02How do I migrate to HPOS safely?

Turn on compatibility mode so both storages stay in sync, wait until no orders are unmigrated, switch to HPOS, verify every integration, and only then turn sync off.

03Can I roll back from HPOS?

Yes, while compatibility mode is on it is a setting. Without sync, turn it back on and let it finish before switching.