array( 'product (WC)', 5 ), 'hp_listing' => array( 'hp_listing (HivePress)', 7 ), 'hp_request' => array( 'hp_request', 5 ), 'hp_vendor' => array( 'hp_vendor', 5 ), 'attachment' => array( 'attachment', 2 ), 'nav_menu_item' => array( 'nav_menu_item', 5 ), 'post' => array( 'post', 2 ), ); ?>
| 1: | |||
| ⚡ Fast | 🐢 Realistic | |
|---|---|---|
disabled |
wp_postmeta 5 rows / flat 0 → 1:5(無優化) | wp_postmeta 5 / flat 0 → 1:5(無優化) |
dual_write |
wp_postmeta 5 / flat 0 → 1:5 | wp_postmeta 5 + flat 1 → 1:5(有 flat 但 wp_postmeta 不減) |
shadow_read |
wp_postmeta 5 / flat 0 → 1:5 | wp_postmeta 5 + flat 1 → 1:5(讀走 flat,寫仍雙寫) |
aeav_only |
wp_postmeta 5(直 SQL 繞過 Hook Bus)/ flat 0 → 1:5 ⚠️ | wp_postmeta 0 / flat 1 → 0:1(完全優化) ✅ |
insert,故意繞過 Hook Bus → 即使 mode=aeav_only 也會寫滿 wp_postmeta(用途:快速灌 fixture 給 Query Router benchmark)。驗證反 EAV 優化效果一律用 Realistic。', '2meet-data-optimizer' ); ?>
product |
_price, _regular_price, _stock, _stock_status, _sku | wp_wpdo_post_wc_product |
hp_listing |
hp_price, hp_status, hp_featured, hp_verified, hp_vendor, hp_view_count, hp_expired_time | wp_wpdo_post_hp_listing_core |
hp_request |
hp_status, hp_user, hp_budget, hp_view_count, hp_expired_time | wp_wpdo_post_hp_request_core |
hp_vendor |
hp_user, hp_verified, hp_hourly_rate, hp_rating_count, hp_rating | wp_wpdo_post_hp_vendor_core |
attachment |
_wp_attached_file, _wp_attachment_image_alt | wp_wpdo_post_attachment |
nav_menu_item |
_menu_item_type, _menu_item_object_id, _menu_item_object, _menu_item_target, _menu_item_url | wp_wpdo_post_nav_menu_item |
post |
_thumbnail_id, _edit_last | wp_wpdo_post_wp_core |