{"id":103241,"date":"2026-09-10T05:41:00","date_gmt":"2026-09-09T21:41:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/103241.html"},"modified":"2026-09-10T05:41:00","modified_gmt":"2026-09-09T21:41:00","slug":"%e7%bb%b4%e5%ba%a6%e5%bb%ba%e6%a8%a1%e5%85%a5%e9%97%a8%e5%ae%9e%e6%88%98%ef%bc%9a%e7%94%b5%e5%95%86%e4%ba%a4%e6%98%93%e5%9f%9f%e6%98%9f%e5%9e%8b%e6%a8%a1%e5%9e%8b%e4%b8%8e%e9%9b%aa%e8%8a%b1%e6%a8%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/103241.html","title":{"rendered":"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218\uff1a\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861"},"content":{"rendered":"<h2>\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218&#xff1a;\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260909214059-6aa1d26bcfa64.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u5728\u6570\u636e\u4ed3\u5e93\u660e\u7ec6\u5c42&#xff08;DWD&#xff09;\u4e0e\u6c47\u603b\u5c42&#xff08;DWS&#xff09;\u7684\u5efa\u6a21\u8bbe\u8ba1\u4e2d&#xff0c;\u6bcf\u4e00\u4e2a\u6570\u636e\u67b6\u6784\u5e08\u90fd\u5fc5\u987b\u56de\u7b54\u4e00\u4e2a\u7ecf\u5178\u7684\u67b6\u6784\u9009\u578b\u95ee\u9898&#xff1a;\u201c\u6211\u4eec\u6570\u4ed3\u5e95\u5c42\u5230\u5e95\u5e94\u8be5\u91c7\u7528\u661f\u578b\u6a21\u578b&#xff08;Star Schema&#xff09;&#xff0c;\u8fd8\u662f\u96ea\u82b1\u6a21\u578b&#xff08;Snowflake Schema&#xff09;&#xff1f;\u201d<\/p>\n<p>\u5f88\u591a\u4ece\u4f20\u7edf\u8f6f\u4ef6\u5de5\u7a0b\u5173\u7cfb\u578b\u6570\u636e\u5e93&#xff08;\u5982 MySQL 3NF \u7b2c\u4e09\u8303\u5f0f&#xff09;\u8f6c\u5165\u5927\u6570\u636e\u6570\u4ed3\u7684\u5de5\u7a0b\u5e08&#xff0c;\u5f80\u5f80\u5929\u7136\u5e26\u7740\u201c\u8303\u5f0f\u5f3a\u8feb\u75c7\u201d&#xff1a;<\/p>\n<ul>\n<li>\u770b\u5230\u5546\u54c1\u8868\u91cc\u5197\u4f59\u4e86\u201c\u7c7b\u76ee\u540d\u79f0\u201d\u548c\u201c\u54c1\u724c\u540d\u79f0\u201d&#xff0c;\u5c31\u89c9\u5f97\u8fdd\u53cd\u4e86\u8303\u5f0f\u7406\u8bba&#xff1b;<\/li>\n<li>\u975e\u8981\u628a\u5546\u54c1\u7ef4\u8868\u62c6\u6210 dim_sku&#xff08;\u5546\u54c1&#xff09;\u3001dim_spu&#xff08;\u6807\u54c1&#xff09;\u3001dim_category_l3&#xff08;\u4e09\u7ea7\u7c7b\u76ee&#xff09;\u3001dim_category_l2&#xff08;\u4e8c\u7ea7\u7c7b\u76ee&#xff09;\u3001dim_category_l1&#xff08;\u4e00\u7ea7\u7c7b\u76ee&#xff09;\u548c dim_brand&#xff08;\u54c1\u724c&#xff09;\u6574\u6574 6 \u5f20\u7d27\u5bc6\u5916\u952e\u5173\u8054\u7684\u96ea\u82b1\u7ef4\u8868\u3002<\/li>\n<\/ul>\n<p>\u7ed3\u679c\u5728\u5206\u5e03\u5f0f\u8ba1\u7b97\u5f15\u64ce&#xff08;\u5982 Hive \/ Spark \/ Presto&#xff09;\u4e2d&#xff0c;\u4e0b\u6e38\u54ea\u6015\u53ea\u662f\u67e5\u4e00\u4e2a\u7b80\u5355\u7684\u201c\u6309\u4e00\u7ea7\u7c7b\u76ee\u7edf\u8ba1\u9500\u552e\u989d\u201d&#xff0c;\u90fd\u5fc5\u987b\u5728 7 \u5f20\u8868\u4e4b\u95f4\u8fdb\u884c\u590d\u6742\u7684\u5206\u5e03\u5f0f\u7f51\u7edc Shuffle \u548c\u591a\u7ea7 Join&#xff0c;\u67e5\u8be2\u6027\u80fd\u6781\u5176\u4f4e\u4e0b&#xff0c;\u7ef4\u62a4\u6210\u672c\u6210\u500d\u98d9\u5347\u3002<\/p>\n<p>\u4eca\u5929\u6211\u4eec\u7cfb\u7edf\u62c6\u89e3\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u5e95\u5c42\u7269\u7406\u5dee\u5f02&#xff0c;\u5e76\u4ee5\u771f\u5b9e\u7684\u7535\u5546\u4ea4\u6613\u57df\u4e3a\u4f8b&#xff0c;\u6df1\u5165\u5256\u6790\u4e3a\u4ec0\u4e48\u73b0\u4ee3\u6570\u4ed3\u575a\u5b9a\u63a8\u5d07\u201c\u9002\u5ea6\u53cd\u8303\u5f0f\u5316\u7684\u661f\u578b\u6a21\u578b\u201d\u3002<\/p>\n<hr \/>\n<h3>\u6838\u5fc3\u62d3\u6251\u7ed3\u6784\u5bf9\u6bd4&#xff1a;\u4e2d\u5fc3\u8f90\u5c04 vs \u591a\u7ea7\u5c42\u7ea7\u5c55\u5f00<\/h3>\n<p>&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<br \/>\n| \u3010\u67b6\u6784 A&#xff1a;\u661f\u578b\u6a21\u578b (Star Schema &#8211; \u63a8\u8350&#xff01;)\u3011                                                        |<br \/>\n|                                                                                                    |<br \/>\n|            [ dim_user (\u7528\u6237\u7ef4\u8868) ]        [ dim_date (\u65e5\u5386\u7ef4\u8868) ]                                  |<br \/>\n|                      \\\\                       \/                                                     |<br \/>\n|                       \u25bc                     \u25bc                                                      |<br \/>\n|                   [ dwd_trd_order_fact (\u4ea4\u6613\u4e8b\u5b9e\u8868) ]                                              |<br \/>\n|                       \u25b2                     \u25b2                                                      |<br \/>\n|                      \/                       \\\\                                                     |<br \/>\n|          [ dim_store (\u95e8\u5e97\u7ef4\u8868) ]        [ dim_goods (\u5927\u5bbd\u8868\u5546\u54c1\u7ef4\u8868) ]                             |<br \/>\n|                                           (\u5df2\u9884\u5148\u5305\u542b\u7c7b\u76ee\/\u54c1\u724c\/\u89c4\u683c\u7b49\u5197\u4f59\u4fe1\u606f)                     |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<br \/>\n                                      vs<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<br \/>\n| \u3010\u67b6\u6784 B&#xff1a;\u96ea\u82b1\u6a21\u578b (Snowflake Schema &#8211; \u614e\u7528&#xff01;)\u3011                                                   |<br \/>\n|                                                                                                    |<br \/>\n|                                      [ dim_category_l1 (\u4e00\u7ea7\u7c7b\u76ee) ]                                |<br \/>\n|                                                    \u25b2                                               |<br \/>\n|                                                    \u2502                                               |<br \/>\n|                                      [ dim_category_l2 (\u4e8c\u7ea7\u7c7b\u76ee) ]                                |<br \/>\n|                                                    \u25b2                                               |<br \/>\n|                                                    \u2502                                               |<br \/>\n|                   [ dwd_trd_order_fact ] \u2500\u2500\u25ba [ dim_goods (\u4ec5\u4fdd\u7559\u7c7b\u76ee\u5916\u952e) ]                        |<br \/>\n|                                                    \u2502                                               |<br \/>\n|                                                    \u25bc                                               |<br \/>\n|                                           [ dim_brand (\u72ec\u7acb\u54c1\u724c\u8868) ]                               |<br \/>\n&#043;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#043;<\/p>\n<hr \/>\n<h3>\u4f18\u7f3a\u70b9\u6df1\u5ea6\u6743\u8861\u77e9\u9635<\/h3>\n<table>\n<tr>\u8bc4\u4f30\u7ef4\u5ea6\u661f\u578b\u6a21\u578b&#xff08;Star Schema \/ \u9002\u5ea6\u53cd\u8303\u5f0f&#xff09;\u96ea\u82b1\u6a21\u578b&#xff08;Snowflake Schema \/ \u4e25\u683c\u8303\u5f0f\u5316&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u7269\u7406\u5b58\u50a8\u7a7a\u95f4<\/td>\n<td>\u7565\u6709\u5197\u4f59&#xff08;\u91cd\u590d\u5b58\u50a8\u7c7b\u76ee\u540d\u79f0\u7b49\u6587\u672c&#xff09;<\/td>\n<td>\u6781\u81f4\u7cbe\u70bc&#xff08;\u96f6\u5197\u4f59\u5b58\u50a8&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u67e5\u8be2\u6027\u80fd\u4e0e Join \u590d\u6742\u5ea6<\/td>\n<td>\u6781\u9ad8&#xff08;\u4e8b\u5b9e\u8868\u4ec5\u9700 1 \u5c42 Join \u5373\u53ef\u83b7\u53d6\u5168\u90e8\u5c5e\u6027&#xff09;<\/td>\n<td>\u6781\u5dee&#xff08;\u5fc5\u987b\u6267\u884c 4~6 \u5c42\u7ea7\u8054 Join&#xff0c;Shuffle \u4e25\u91cd&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u7406\u89e3\u4e0e\u4f7f\u7528\u95e8\u69db<\/td>\n<td>\u6781\u4f4e&#xff08;\u4e1a\u52a1\u548c\u521d\u7ea7\u5206\u6790\u5e08\u4e00\u773c\u770b\u61c2&#xff09;<\/td>\n<td>\u6781\u9ad8&#xff08;\u9700\u8981\u719f\u6089\u590d\u6742\u7684\u96ea\u82b1\u591a\u7ea7\u5916\u952e\u4f9d\u8d56&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>OLAP \u5217\u5b58\u538b\u7f29\u6536\u76ca<\/td>\n<td>\u6781\u4f73&#xff08;\u5217\u5b58\u6570\u636e\u5e93\u5982 Parquet \u5bf9\u91cd\u590d\u6587\u672c\u538b\u7f29\u6bd4\u9ad8\u8fbe 90%&#xff09;<\/td>\n<td>\u6536\u76ca\u6709\u9650&#xff08;\u591a\u8868\u5206\u6563\u5b58\u50a8&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u7ef4\u5ea6\u5c5e\u6027\u53d8\u66f4\u7ef4\u62a4\u4ee3\u4ef7<\/td>\n<td>\u5c5e\u6027\u66f4\u65b0\u65f6\u9700\u8981\u91cd\u5237\u6574\u4e2a\u7ef4\u8868<\/td>\n<td>\u6781\u5c0f&#xff08;\u53ea\u9700\u4fee\u6539\u7279\u5b9a\u96ea\u82b1\u7ef4\u8868\u5355\u884c&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e3a\u4ec0\u4e48\u73b0\u4ee3\u5927\u6570\u636e\u5206\u6790\u575a\u5b9a\u9009\u62e9\u661f\u578b\u6a21\u578b&#xff1f;\u4e24\u5927\u6280\u672f\u7834\u5c40\u70b9<\/h3>\n<h4>1. \u5206\u5e03\u5f0f\u8ba1\u7b97\u7684\u201cJoin \u60e9\u7f5a\u201d\u8fdc\u5927\u4e8e\u201c\u5b58\u50a8\u6210\u672c\u201d<\/h4>\n<p>\u5728 30 \u5e74\u524d\u78c1\u76d8\u6602\u8d35\u7684\u5355\u673a\u5173\u7cfb\u578b\u6570\u636e\u5e93\u65f6\u4ee3&#xff0c;\u6d88\u9664\u5197\u4f59\u5b57\u6bb5\u4ee5\u8282\u7701\u78c1\u76d8\u7a7a\u95f4\u662f\u9996\u8981\u8bc9\u6c42&#xff1b;\u4f46\u5728\u73b0\u4ee3\u5206\u5e03\u5f0f\u5927\u6570\u636e\u65f6\u4ee3&#xff0c;\u5b58\u50a8\u6210\u672c\u6781\u5176\u5ec9\u4ef7&#xff0c;\u800c\u7f51\u7edc\u5e26\u5bbd\u4e0e\u5206\u5e03\u5f0f Shuffle \u662f\u5168\u96c6\u7fa4\u6700\u6602\u8d35\u3001\u6700\u5bb9\u6613\u53d1\u751f\u503e\u659c\u7684\u7a00\u7f3a\u8d44\u6e90\u3002\u591a\u4e00\u6b21 Join&#xff0c;\u5c31\u591a\u4e00\u6b21\u5168\u7f51\u6570\u636e\u6df7\u6d17&#xff08;Shuffle&#xff09;\u3002\u661f\u578b\u6a21\u578b\u7528\u5fae\u5c0f\u7684\u78c1\u76d8\u5197\u4f59\u6362\u53d6\u4e86\u67e5\u8be2\u65f6\u201c\u5355\u6b21\u76f4\u8fde\u201d\u7684\u6781\u81f4\u6027\u80fd&#xff0c;ROI \u6781\u9ad8\u3002<\/p>\n<h4>2. \u5217\u5f0f\u5b58\u50a8&#xff08;Parquet \/ ORC&#xff09;\u5bf9\u5197\u4f59\u5c5e\u6027\u7684\u5929\u7136\u538b\u7f29<\/h4>\n<p>\u5f88\u591a\u62c5\u5fc3\u661f\u578b\u6a21\u578b\u5360\u7528\u5b58\u50a8\u7684\u5de5\u7a0b\u5e08\u5ffd\u7565\u4e86\u5217\u5f0f\u5b58\u50a8\u7684\u5a01\u529b\u3002\u5728 dim_goods \u4e2d&#xff0c;\u5373\u4f7f 500 \u4e07\u884c\u5546\u54c1\u91cd\u590d\u5b58\u50a8\u4e86 10 \u4e07\u6b21 &#034;\u6570\u78013C&#034;&#xff0c;\u5728 Parquet \/ ClickHouse \u7684\u5b57\u5178\u7f16\u7801&#xff08;Dictionary Encoding&#xff09;\u4e0e Run-Length \u538b\u7f29\u7b97\u6cd5\u4e0b&#xff0c;\u76f8\u540c\u7684\u5b57\u7b26\u4e32\u5728\u78c1\u76d8\u5e95\u5c42\u53ea\u5360\u7528\u51e0\u4e2a\u5b57\u8282&#xff0c;\u7269\u7406\u5b58\u50a8\u5f00\u9500\u51e0\u4e4e\u53ef\u4ee5\u5ffd\u7565\u4e0d\u8ba1&#xff01;<\/p>\n<hr \/>\n<h3>\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u5efa\u6a21\u5b9e\u6218 DDL \u8303\u5f0f<\/h3>\n<p>&#8212; 1. \u9ad8\u5185\u805a\u3001\u9002\u5ea6\u53cd\u8303\u5f0f\u7684\u661f\u578b\u5546\u54c1\u7ef4\u5ea6\u8868 (dim_goods_info_df)<br \/>\nCREATE TABLE dw_prod.dim_goods_info_df (<br \/>\n    sku_id              BIGINT COMMENT &#039;\u5546\u54c1SKU\u4e3b\u952e&#039;,<br \/>\n    spu_id              BIGINT COMMENT &#039;\u6807\u54c1SPU\u7f16\u53f7&#039;,<br \/>\n    sku_name            STRING COMMENT &#039;\u5546\u54c1\u540d\u79f0&#039;,<br \/>\n    &#8212; \u6838\u5fc3&#xff1a;\u76f4\u63a5\u5c06\u591a\u7ea7\u7c7b\u76ee\u4e0e\u54c1\u724c\u5c5e\u6027\u53cd\u8303\u5f0f\u9000\u5316\u5197\u4f59\u5728\u540c\u4e00\u5f20\u7ef4\u8868\u4e2d&#xff01;<br \/>\n    category_l1_id      INT COMMENT &#039;\u4e00\u7ea7\u7c7b\u76eeID&#039;,<br \/>\n    category_l1_name    STRING COMMENT &#039;\u4e00\u7ea7\u7c7b\u76ee\u540d\u79f0 (\u5982: \u7535\u5b50\u4ea7\u54c1)&#039;,<br \/>\n    category_l2_id      INT COMMENT &#039;\u4e8c\u7ea7\u7c7b\u76eeID&#039;,<br \/>\n    category_l2_name    STRING COMMENT &#039;\u4e8c\u7ea7\u7c7b\u76ee\u540d\u79f0 (\u5982: \u624b\u673a\u901a\u8baf)&#039;,<br \/>\n    category_l3_id      INT COMMENT &#039;\u4e09\u7ea7\u7c7b\u76eeID&#039;,<br \/>\n    category_l3_name    STRING COMMENT &#039;\u4e09\u7ea7\u7c7b\u76ee\u540d\u79f0 (\u5982: 5G\u667a\u80fd\u624b\u673a)&#039;,<br \/>\n    brand_id            INT COMMENT &#039;\u54c1\u724cID&#039;,<br \/>\n    brand_name          STRING COMMENT &#039;\u54c1\u724c\u540d\u79f0 (\u5982: \u534e\u4e3a)&#039;,<br \/>\n    unit_name           STRING COMMENT &#039;\u8ba1\u91cf\u5355\u4f4d&#039;,<br \/>\n    created_time        TIMESTAMP COMMENT &#039;\u4e0a\u67b6\u65f6\u95f4&#039;<br \/>\n) PARTITION BY dt;<\/p>\n<p>&#8212; 2. \u4ea4\u6613\u660e\u7ec6\u4e8b\u5b9e\u8868 (dwd_trd_order_item_di)<br \/>\nCREATE TABLE dw_prod.dwd_trd_order_item_di (<br \/>\n    order_item_id       BIGINT COMMENT &#039;\u5b50\u8ba2\u5355\u660e\u7ec6ID&#039;,<br \/>\n    order_id            BIGINT COMMENT &#039;\u4e3b\u8ba2\u5355ID&#039;,<br \/>\n    user_id             BIGINT COMMENT &#039;\u4e70\u5bb6ID (\u5173\u8054 dim_user)&#039;,<br \/>\n    sku_id              BIGINT COMMENT &#039;\u5546\u54c1ID (\u5173\u8054 dim_goods)&#039;,<br \/>\n    store_id            BIGINT COMMENT &#039;\u95e8\u5e97ID (\u5173\u8054 dim_store)&#039;,<br \/>\n    order_date          DATE COMMENT &#039;\u4e0b\u5355\u65e5\u671f (\u5173\u8054 dim_date)&#039;,<br \/>\n    quantity            INT COMMENT &#039;\u8d2d\u4e70\u6570\u91cf&#039;,<br \/>\n    pay_amount          DECIMAL(10, 2) COMMENT &#039;\u5b9e\u4ed8\u91d1\u989d&#039;<br \/>\n) PARTITION BY dt;<\/p>\n<hr \/>\n<h3>\u7ec8\u6781\u9009\u578b\u519b\u89c4<\/h3>\n<li>\u6570\u4ed3\u660e\u7ec6\u4e0e\u6c47\u603b\u5c42 95% \u573a\u666f\u5f3a\u5236\u4f7f\u7528\u661f\u578b\u6a21\u578b&#xff1a;\u575a\u51b3\u8d2f\u5f7b\u201c\u7ef4\u5ea6\u9000\u5316\u201d\u601d\u60f3&#xff0c;\u6d88\u9664\u4efb\u4f55 3 \u5c42\u4ee5\u4e0a\u7684\u96ea\u82b1\u5c42\u7ea7\u94fe\u6761\u3002<\/li>\n<li>\u4ec5\u5728\u7ef4\u8868\u81ea\u8eab\u6570\u636e\u91cf\u7a81\u7834\u5343\u4e07\u7ea7\u4e14\u53d8\u66f4\u9891\u7e41\u65f6\u5141\u8bb8\u5c40\u90e8\u96ea\u82b1\u5316&#xff1a;\u4f8b\u5982\u201c\u5168\u7f51\u6570\u5341\u4ebf\u4f01\u4e1a\u5de5\u5546\u56fe\u8c31\u201d\u7684\u6295\u8d44\u5c42\u7ea7\u5173\u7cfb&#xff0c;\u7531\u4e8e\u5b9e\u4f53\u672c\u8eab\u662f\u9ad8\u52a8\u6001\u56fe\u7ed3\u6784&#xff0c;\u624d\u5141\u8bb8\u91c7\u7528\u6709\u9650\u7684\u96ea\u82b1\u5c42\u7ea7\u62c6\u5206\u3002<\/li>\n<li>\u4e00\u81f4\u6027\u7ef4\u5ea6\u662f\u661f\u578b\u6a21\u578b\u7684\u7075\u9b42&#xff1a;\u65e0\u8bba\u5efa\u591a\u5c11\u5f20\u661f\u578b\u4e8b\u5b9e\u8868&#xff0c;\u4e2d\u95f4\u7684\u7ef4\u8868\u5fc5\u987b\u4fdd\u6301\u7edf\u4e00\u4e0e\u5171\u4eab&#xff0c;\u7edd\u4e0d\u80fd\u4e3a\u6bcf\u4e00\u4e2a\u4e8b\u5b9e\u8868\u5355\u72ec\u590d\u5236\u4e00\u5957\u79c1\u6709\u7ef4\u8868\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218&#xff1a;\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861\u5728\u6570\u636e\u4ed3\u5e93\u660e\u7ec6\u5c42&#xff08;DWD&#xff09;\u4e0e\u6c47\u603b\u5c42&#xff08;DWS&#xff09;\u7684\u5efa\u6a21\u8bbe\u8ba1\u4e2d&#xff0c;\u6bcf\u4e00\u4e2a\u6570\u636e\u67b6\u6784\u5e08\u90fd\u5fc5\u987b\u56de\u7b54\u4e00\u4e2a\u7ecf\u5178\u7684\u67b6\u6784\u9009\u578b\u95ee\u9898&#xff1a;\u201c\u6211\u4eec\u6570\u4ed3\u5e95\u5c42\u5230\u5e95\u5e94\u8be5\u91c7\u7528\u661f\u578b\u6a21\u578b&#xff08;Star Schema&#xff09;&#xff0c;\u8fd8\u662f\u96ea\u82b1\u6a21\u578b&#xff08;Snowflake Schema&#xff09;&#xff1f;\u201d<br \/>\n\u5f88\u591a\u4ece\u4f20\u7edf\u8f6f\u4ef6\u5de5\u7a0b<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[66,81,50,292,51],"topic":[],"class_list":["post-103241","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-python","tag-50","tag-292","tag-51"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218\uff1a\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/103241.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218\uff1a\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218&#xff1a;\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861\u5728\u6570\u636e\u4ed3\u5e93\u660e\u7ec6\u5c42&#xff08;DWD&#xff09;\u4e0e\u6c47\u603b\u5c42&#xff08;DWS&#xff09;\u7684\u5efa\u6a21\u8bbe\u8ba1\u4e2d&#xff0c;\u6bcf\u4e00\u4e2a\u6570\u636e\u67b6\u6784\u5e08\u90fd\u5fc5\u987b\u56de\u7b54\u4e00\u4e2a\u7ecf\u5178\u7684\u67b6\u6784\u9009\u578b\u95ee\u9898&#xff1a;\u201c\u6211\u4eec\u6570\u4ed3\u5e95\u5c42\u5230\u5e95\u5e94\u8be5\u91c7\u7528\u661f\u578b\u6a21\u578b&#xff08;Star Schema&#xff09;&#xff0c;\u8fd8\u662f\u96ea\u82b1\u6a21\u578b&#xff08;Snowflake Schema&#xff09;&#xff1f;\u201d \u5f88\u591a\u4ece\u4f20\u7edf\u8f6f\u4ef6\u5de5\u7a0b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/103241.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-09T21:41:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260909214059-6aa1d26bcfa64.webp\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103241.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/103241.html\",\"name\":\"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218\uff1a\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-09T21:41:00+00:00\",\"dateModified\":\"2026-09-09T21:41:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/103241.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/103241.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103241.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218\uff1a\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218\uff1a\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/103241.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218\uff1a\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218&#xff1a;\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861\u5728\u6570\u636e\u4ed3\u5e93\u660e\u7ec6\u5c42&#xff08;DWD&#xff09;\u4e0e\u6c47\u603b\u5c42&#xff08;DWS&#xff09;\u7684\u5efa\u6a21\u8bbe\u8ba1\u4e2d&#xff0c;\u6bcf\u4e00\u4e2a\u6570\u636e\u67b6\u6784\u5e08\u90fd\u5fc5\u987b\u56de\u7b54\u4e00\u4e2a\u7ecf\u5178\u7684\u67b6\u6784\u9009\u578b\u95ee\u9898&#xff1a;\u201c\u6211\u4eec\u6570\u4ed3\u5e95\u5c42\u5230\u5e95\u5e94\u8be5\u91c7\u7528\u661f\u578b\u6a21\u578b&#xff08;Star Schema&#xff09;&#xff0c;\u8fd8\u662f\u96ea\u82b1\u6a21\u578b&#xff08;Snowflake Schema&#xff09;&#xff1f;\u201d \u5f88\u591a\u4ece\u4f20\u7edf\u8f6f\u4ef6\u5de5\u7a0b","og_url":"https:\/\/www.wsisp.com\/helps\/103241.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-09T21:41:00+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260909214059-6aa1d26bcfa64.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/103241.html","url":"https:\/\/www.wsisp.com\/helps\/103241.html","name":"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218\uff1a\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-09T21:41:00+00:00","dateModified":"2026-09-09T21:41:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/103241.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/103241.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/103241.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7ef4\u5ea6\u5efa\u6a21\u5165\u95e8\u5b9e\u6218\uff1a\u7535\u5546\u4ea4\u6613\u57df\u661f\u578b\u6a21\u578b\u4e0e\u96ea\u82b1\u6a21\u578b\u7684\u9009\u578b\u6743\u8861"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=103241"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103241\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=103241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=103241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=103241"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=103241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}