{"id":245277,"date":"2022-07-01T08:02:18","date_gmt":"2022-07-01T00:02:18","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=245277"},"modified":"2022-06-23T18:05:09","modified_gmt":"2022-06-23T10:05:09","slug":"etl-summary","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/etl-summary.html","title":{"rendered":"\u4e94\u79cd\u6d41\u5f0fETL\u6a21\u5f0f\u603b\u7ed3"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0cETL \u4e2d\u7684\u201cT\u201d\u4ee3\u8868\u7531\u539f\u59cb\u64cd\u4f5c\u7ec4\u88c5\u800c\u6210\u7684\u5404\u79cd\u6a21\u5f0f\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u7d22\u8fd9\u4e9b\u64cd\u4f5c\u5e76\u67e5\u770b\u5982\u4f55\u5c06\u5b83\u4eec\u5b9e\u73b0\u4e3a SQL \u8bed\u53e5\u7684\u793a\u4f8b\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u200b1970 \u5e74\u4ee3\u7684\u8bb8\u591a\u8ba1\u7b97\u6982\u5ff5\u5df2\u7ecf\u8fc7\u65f6\uff0c\u4f46ETL (Extract-Transform-Load)\u53ca\u5176\u6700\u8fd1\u7684 anagram shuffle ELT\u5e76\u975e\u5982\u6b64\uff0c\u5b83\u5728\u76ee\u7684\u5730\u4e0e\u98de\u884c\u4e2d\u64cd\u7eb5\u6570\u636e\u3002ETL \u548c ELT \u4f20\u7edf\u4e0a\u662f\u8ba1\u5212\u7684\u6279\u5904\u7406\u64cd\u4f5c\uff0c\u4f46\u968f\u7740\u5bf9\u59cb\u7ec8\u5728\u7ebf\u3001\u59cb\u7ec8\u6700\u65b0\u7684\u6570\u636e\u670d\u52a1\u7684\u9700\u6c42\u6210\u4e3a\u5e38\u6001\uff0c\u5728\u6570\u636e\u6d41\u4e0a\u64cd\u4f5c\u7684\u5b9e\u65f6 ELT \u662f\u8bb8\u591a\u7ec4\u7ec7\u7684\u76ee\u6807\u2014\u2014\u5982\u679c\u4e0d\u662f\u73b0\u5b9e\u7684\u8bdd\u3002<\/p>\n \u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0cETL \u4e2d\u7684\u201cT\u201d\u4ee3\u8868\u7531\u539f\u59cb\u64cd\u4f5c\u7ec4\u88c5\u800c\u6210\u7684\u5404\u79cd\u6a21\u5f0f\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u63a2\u7d22\u8fd9\u4e9b\u64cd\u4f5c\u5e76\u67e5\u770b\u5982\u4f55\u5c06\u5b83\u4eec\u5b9e\u73b0\u4e3a SQL \u8bed\u53e5\u7684\u793a\u4f8b\u3002<\/p>\n \u4f7f\u7528 SQL \u8bed\u53e5\u8fdb\u884c\u8f6c\u6362\uff1f<\/strong><\/div>\n \u662f\u7684\uff01SQL \u5c06\u58f0\u660e\u6027\u8bed\u8a00\u7684\u5f3a\u5927\u548c\u7b80\u6d01\u6027\u4e0e\u4efb\u4f55\u4f7f\u7528\u4ee3\u7801\u6216\u6570\u636e\u7684\u4eba\u7684\u666e\u904d\u6280\u80fd\u76f8\u7ed3\u5408\u3002\u4e0e\u60a8\u53ef\u80fd\u7528\u4f5c\u66ff\u4ee3\u7684\u51e0\u4e4e\u4efb\u4f55\u7f16\u7a0b\u8bed\u8a00\u4e0d\u540c\uff0cSQL \u7684\u666e\u53ca\u8981\u5f52\u529f\u4e8e\u5c06\u8fd1 50 \u5e74\u7684\u5bff\u547d\u2014\u2014\u8ba1\u7b97\u884c\u4e1a\u4e2d\u7684\u51e0\u4e4e\u6bcf\u4e2a\u4eba\u90fd\u66fe\u5728\u67d0\u4e2a\u65f6\u5019\u4f7f\u7528\u8fc7\u5b83\u3002SQL \u7684\u5f3a\u5927\u529f\u80fd\u548c\u666e\u904d\u6027\u610f\u5473\u7740\u5b83\u65e0\u5904\u4e0d\u5728\uff0c\u751a\u81f3\u5728\u6784\u5efa\u6700\u65b0\u5f00\u53d1\u4eba\u5458\u6280\u672f\u548c\u670d\u52a1\u7684\u516c\u53f8\u4e2d\u4e5f\u662f\u5982\u6b64\u3002\u5f53\u901a\u8fc7\u51fd\u6570\u589e\u5f3a\u65f6\uff0cSQL \u53d8\u5f97\u66f4\u52a0\u5f3a\u5927\u3002<\/p>\n \u7ba1\u9053\u6a21\u5f0f<\/strong><\/div>\n 1\uff1a\u8fc7\u6ee4\u5668<\/strong><\/span><\/div>\n <\/p>\n \u8fc7\u6ee4\u5668\u4ece\u6d41\u4e2d\u5220\u9664\u4e0d\u9700\u8981\u7684\u8bb0\u5f55\uff0c\u5220\u9664\u4e0e SQL where\u5b50\u53e5\u4e2d\u7684\u201c\u89c4\u5219\u201d\u4e0d\u5339\u914d\u7684\u8bb0\u5f55\u3002\u8fc7\u6ee4\u5668\u901a\u5e38\u7528\u4e8e\u6291\u5236\u654f\u611f\u8bb0\u5f55\u4ee5\u786e\u4fdd\u5408\u89c4\u6027\uff0c\u6216\u51cf\u5c11\u76ee\u6807\u7cfb\u7edf\u4e0a\u7684\u5904\u7406\u8d1f\u8f7d\u6216\u5b58\u50a8\u9700\u6c42\u3002<\/p>\n Filter only records pertaining to the application\r\ninsert into application_events\r\nselect * from http_eventswhere hostname = 'app.decodable.co'\r\nFilter only records that modify the inventory\r\ninsert into inventory_updates\r\nselect * from http_eventswhere hostname = 'api.mycompany.com' and\r\npath like '\/v1\/inventory%' and\r\nmethod in ( 'POST', 'PUT', 'DELETE', 'PATCH' )<\/pre>\n |