摘要表格結構描述參考

每個摘要在Adobe Commerce資料庫中都有一個專用的MySQL資料表。 所有摘要表格會共用相同的欄結構。 下表列出每個摘要及其CLI摘要名稱、索引器ID和摘要表格名稱。

支援的摘要

實際的摘要清單取決於已安裝的SaaS Data Export封裝。

摘要(--feed)
用途
索引子ID
摘要表格
匯出模式
products
產品目錄(屬性、類別、影像等)
catalog_data_exporter_products
cde_products_feed
立即
productAttributes
屬性定義和中繼資料。 用於定義搜尋結構描述。
catalog_data_exporter_product_attributes
cde_product_attributes_feed
立即
categories
類別資料
catalog_data_exporter_categories
cde_categories_feed
立即
prices
產品價格與客戶群組價格及層級價格
catalog_data_exporter_product_prices
cde_product_prices_feed
立即
variants
可設定的產品變體
catalog_data_exporter_product_variants
cde_product_variants_feed
立即
scopesWebsite
具有商店檢視代碼的網站
scopes_website_data_exporter
scopes_website_data_exporter
舊版
scopesCustomerGroup
客戶群組定義
scopes_customergroup_data_exporter
scopes_customergroup_data_exporter
舊版
productOverrides
計算出的產品許可權
catalog_data_exporter_product_overrides
cde_product_overrides_feed
立即
categoryPermissions (EE)
原始類別許可權資料
catalog_data_exporter_category_permissions
cde_category_permissions_feed
立即
orders
銷售訂單狀態
sales_order_data_exporter_v2
sales_data_exporter_orders_v2
舊版

匯出模式​資料行指出每個摘要收集和提交資料的方式:

  • 立即模式摘要 — 收集資料、使用內容雜湊略過未變更的專案(雜湊重複資料刪除),並在相同的索引器執行中送出更新。
  • 舊版模式摘要 (scopesWebsitescopesCustomerGrouporders) — 請先將組合資料儲存在摘要資料表中,然後透過個別的cron工作送出。

請參閱同步處理模式

結構描述

型別
說明
id
整數(PK)
自動增加主索引鍵
source_entity_id
INT
來自Commerce來源表格的實體ID (例如,catalog_product_entity.entity_id
feed_id
VARCHAR
摘要專案的唯一識別碼。 計算為專案識別欄位的雜湊(例如,sku + storeViewCode),而不是自動增加值。
feed_data
JSON
此專案的摘要裝載。 僅填入實體識別碼和範圍的最小資訊。 設定PERSIST_EXPORTED_FEED=1時,會儲存完整裝載。
feed_hash
VARCHAR
用於變更偵測的內容雜湊。 從承載中計算,排除時間戳記(modifiedAtupdatedAt)。 如果雜湊符合前一個匯出,則不會重新提交專案。
is_deleted
TINYINT
軟刪除標籤。 在Commerce中刪除實體時,設為1
modified_at
時間戳記
上次修改此摘要專案的時間
status
INT
上次匯出嘗試的提交狀態代碼。 請參閱摘要提交與HTTP錯誤處理
errors
文字
SaaS服務針對此專案傳回的JSON編碼錯誤詳細資料
metadata
JSON
匯出框架使用的內部同步標幟和鎖定中繼資料資訊

常見診斷查詢

使用下列SQL查詢直接檢查摘要表格狀態。 將cde_products_feed取代為您正在調查的摘要的表格。 如需資料表名稱的完整清單,請參閱支援的摘要

尋找所有尚未成功匯出的專案:

SELECT source_entity_id, status, errors, modified_at
FROM cde_products_feed
WHERE status != 200
ORDER BY modified_at DESC
LIMIT 50;

檢查所有領域之特定SKU的匯出狀態:

SELECT p.sku, f.status, f.modified_at, f.is_deleted, f.feed_data, f.errors
FROM catalog_product_entity p
LEFT JOIN cde_products_feed f ON f.source_entity_id = p.entity_id
WHERE p.sku = 'ADB295';
recommendation-more-help
commerce-help-data-export