{"id":561,"date":"2025-08-27T22:23:00","date_gmt":"2025-08-27T14:23:00","guid":{"rendered":"http:\/\/www.applicationsofllm.com\/?p=561"},"modified":"2025-09-16T22:26:20","modified_gmt":"2025-09-16T14:26:20","slug":"olap-or-oltp%e8%af%a5%e6%80%8e%e4%b9%88%e9%80%89%ef%bc%9f%e6%95%b0%e6%8d%ae%e5%ba%93%e7%b3%bb%e7%bb%9f%e5%a6%82%e4%bd%95%e6%90%ad%e5%bb%ba%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.applicationsofllm.com\/index.php\/2025\/08\/27\/olap-or-oltp%e8%af%a5%e6%80%8e%e4%b9%88%e9%80%89%ef%bc%9f%e6%95%b0%e6%8d%ae%e5%ba%93%e7%b3%bb%e7%bb%9f%e5%a6%82%e4%bd%95%e6%90%ad%e5%bb%ba%ef%bc%9f\/","title":{"rendered":"OLAP or OLTP\u8be5\u600e\u4e48\u9009\uff1f\u6570\u636e\u5e93\u7cfb\u7edf\u5982\u4f55\u642d\u5efa\uff1f"},"content":{"rendered":"\n<p><strong>\u4e00\u3001OLTP\u548cOLAP\uff0c\u5230\u5e95\u6709\u5565\u533a\u522b\uff1f<br><br><\/strong><\/p>\n\n\n\n<p>\u8981\u5206\u6e05\u695a OLTP \u548c OLAP\uff0c\u4e0d\u7528\u770b\u90a3\u4e9b\u590d\u6742\u5b9a\u4e49\uff0c\u5c31\u770b\u5b83\u4eec\u5e72\u7684\u662f\u5565\u6d3b\u513f\u3002<\/p>\n\n\n\n<p><strong>1. OLTP\uff1a\u8d1f\u8d23\u4e1a\u52a1\u7684\u5b9e\u65f6 \u201c\u6267\u884c\u201d<\/strong><\/p>\n\n\n\n<p>OLTP\uff0c\u5168\u79f0\u662f\u5728\u7ebf\u4e8b\u52a1\u5904\u7406\uff08Online Transaction Processing\uff09\uff0c\u7b80\u5355\u8bf4\u5c31\u662f\u201c\u5904\u7406\u4f60\u6bcf\u5929\u7528\u7684\u90a3\u4e9b\u2018\u70b9\u4e00\u4e0b\u5c31\u751f\u6548\u2019\u7684\u64cd\u4f5c\u201d\u3002<\/p>\n\n\n\n<p>\u4e3e\u4e2a\u6700\u5e38\u89c1\u7684\u4f8b\u5b50\uff1a<\/p>\n\n\n\n<p>\u4f60\u5728\u6dd8\u5b9d\u4e0b\u5355\u4e70\u4ef6\u8863\u670d\uff0c\u70b9\u51fb\u201c\u63d0\u4ea4\u8ba2\u5355\u201d\u7684\u77ac\u95f4\uff0c\u7cfb\u7edf\u8981\u505a\u51e0\u4ef6\u4e8b\u2014\u2014<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6263\u51cf\u5e93\u5b58<\/li>\n\n\n\n<li>\u751f\u6210\u8ba2\u5355\u53f7<\/li>\n\n\n\n<li>\u8bb0\u5f55\u7528\u6237\u5730\u5740<\/li>\n\n\n\n<li>\u66f4\u65b0\u8d26\u6237\u4f59\u989d<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e9b\u64cd\u4f5c\u90fd\u5f97\u5728\u6beb\u79d2\u7ea7\u5b8c\u6210\uff0c\u7528\u6237\u4e0d\u80fd\u7b49\uff0c\u4e5f\u4e0d\u80fd\u51fa\u9519\u3002<\/p>\n\n\n\n<p>\u8fd9\u7c7b\u64cd\u4f5c\u6709\u56db\u4e2a\u7279\u70b9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u9ad8\u9891\u77ed\u4e8b\u52a1\uff1a<\/strong>\u6bcf\u6b21\u64cd\u4f5c\u5c31\u6539\u4e2a\u51e0\u884c\u6570\u636e\uff0c\u4f46\u5e76\u53d1\u91cf\u7279\u522b\u5927\u3002\u5c31\u50cf\u53cc 11 \u90a3\u4f1a\u513f\uff0c\u6bcf\u79d2\u51e0\u5341\u4e07\u7b14\u8ba2\u5355\uff0c\u5168\u9760\u5b83\u6491\u7740\uff1b<\/li>\n\n\n\n<li><strong>\u5fc5\u987b\u4fdd\u8bc1\u4e00\u81f4\u6027\uff1a<\/strong>\u6bd4\u5982\u4f60\u4ed8\u4e86 100 \u5757\u4e70\u4e1c\u897f\uff0c\u8d26\u6237\u6263\u6b3e\u548c\u8ba2\u5355\u91d1\u989d\u5f97\u5bf9\u4e0a\uff0c\u8981\u4e48\u90fd\u6210\uff0c\u8981\u4e48\u90fd\u4e0d\u6210\uff0c\u8fd9\u5c31\u662f\u5e38\u8bf4\u7684\u00a0ACID \u7279\u6027\uff1b<\/li>\n\n\n\n<li><strong>\u6570\u636e\u7ed3\u6784\u4e0d\u80fd\u778e\u6539\uff1a<\/strong>\u7528\u6237\u8868\u3001\u8ba2\u5355\u8868\u8fd9\u4e9b\uff0c\u5b57\u6bb5\u90fd\u662f\u56fa\u5b9a\u7684\uff0c\u6539\u4e00\u4e0b\u53ef\u80fd\u6574\u4e2a\u4e1a\u52a1\u6d41\u7a0b\u5c31\u4e71\u4e86\uff1b<\/li>\n\n\n\n<li><strong>\u54cd\u5e94\u5fc5\u987b\u5feb\uff1a<\/strong>\u8c01\u80fd\u5fcd\u4e0b\u5355\u540e\u7b49 3 \u79d2\u624d\u51fa\u7ed3\u679c\uff1f\u6240\u4ee5\u5904\u7406\u65f6\u95f4\u5f97\u63a7\u5236\u5728\u6beb\u79d2\u7ea7\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u7b80\u5355\u8bf4\uff0cOLTP&nbsp;\u5c31\u662f\u4e1a\u52a1\u7684\u201c\u6267\u884c\u8005\u201d\uff0c\u8d1f\u8d23\u628a\u65e5\u5e38\u4e1a\u52a1\u7a33\u7a33\u5f53\u5f53\u8dd1\u8d77\u6765\u3002<\/p>\n\n\n\n<p><strong>2. OLAP\uff1a\u8d1f\u8d23\u4ece\u6570\u636e\u91cc\u201c\u6316\u4ef7\u503c\u201d<\/strong><\/p>\n\n\n\n<p>OLAP&nbsp;\u5168\u79f0\u662f&nbsp;Online Analytical Processing\uff0c\u6838\u5fc3\u662f\u4ece\u5386\u53f2\u6570\u636e\u91cc\u627e\u51fa\u6709\u7528\u7684\u4fe1\u606f\uff0c\u5e2e\u7740\u505a\u51b3\u7b56\u3002<\/p>\n\n\n\n<p>\u6bd4\u5982\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7535\u5546\u5206\u6790\u5927\u4fc3\u671f\u95f4\u7684\u590d\u8d2d\u7387<\/li>\n\n\n\n<li>\u96f6\u552e\u770b\u533a\u57df\u9500\u552e\u8d8b\u52bf<\/li>\n\n\n\n<li>\u94f6\u884c\u8bc4\u4f30\u5ba2\u6237\u4fe1\u7528\u98ce\u9669<\/li>\n<\/ul>\n\n\n\n<p>\u8fd9\u4e9b\u90fd\u662f&nbsp;OLAP&nbsp;\u7684\u6d3b\u513f\u3002\u5b83\u7684\u7279\u70b9\u4e5f\u5f88\u660e\u663e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u4f4e\u9891\u957f\u67e5\u8be2\uff1a<\/strong>\u4e00\u6b21\u5206\u6790\u53ef\u80fd\u8981\u626b\u51e0\u767e\u4e07\u3001\u51e0\u5343\u4e07\u751a\u81f3\u4e0a\u4ebf\u6761\u6570\u636e\u3002<\/li>\n\n\n\n<li><strong>\u8ba1\u7b97\u8d77\u6765\u590d\u6742\uff1a<\/strong>\u8981\u505a\u8868\u5173\u8054\u3001\u5206\u7ec4\u805a\u5408\u3001\u7a97\u53e3\u51fd\u6570\u8fd9\u4e9b\uff0c\u6709\u4e9b\u590d\u6742\u3002<\/li>\n\n\n\n<li><strong>\u6570\u636e\u7ed3\u6784\u7075\u6d3b\uff1a<\/strong>\u60f3\u52a0\u4e2a\u201c\u76f4\u64ad\u5e26\u8d27\u201d\u7684\u6807\u7b7e\uff0c\u6216\u8005\u628a\u65e5\u6570\u636e\u6539\u6210\u5468\u6570\u636e\uff0c\u968f\u65f6\u80fd\u5f04\uff1b<\/li>\n\n\n\n<li><strong>\u54cd\u5e94\u65f6\u95f4\u6ca1\u90a3\u4e48\u6025\uff1a<\/strong>\u53ea\u8981\u80fd\u8ba9\u5206\u6790\u5e08\u6765\u56de\u8c03\u6761\u4ef6\u67e5\u5c31\u884c\uff0c\u6bd4\u5982\u5148\u770b A \u7ef4\u5ea6\uff0c\u518d\u6362 B \u7ef4\u5ea6\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u8bf4\u767d\u4e86\uff0c<strong>OLAP&nbsp;\u5c31\u662f\u201c\u51b3\u7b56\u8111\u201d\uff0c\u9760\u5206\u6790\u6570\u636e\u7ed9\u4e1a\u52a1\u6307\u65b9\u5411\u3002<\/strong><\/p>\n\n\n\n<p>\u6ce8\u610f\u70b9\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u522b\u6df7\u7528\u573a\u666f\uff1a<\/strong>\u7528\u00a0OLTP\u00a0\u505a\u5206\u6790\uff0c\u6700\u540e\u4e1a\u52a1\u80af\u5b9a\u5d29\u6e83\uff1b\u7528\u00a0OLAP\u00a0\u5904\u7406\u4ea4\u6613\uff0c\u5199\u5165\u6162\u3001\u4e8b\u52a1\u6ca1\u4fdd\u969c\uff0c\u7528\u6237\u4f53\u9a8c\u5f88\u5dee\u3002<\/li>\n\n\n\n<li><strong>\u522b\u76f2\u76ee\u8ffd\u65b0\uff1a<\/strong>HTAP\u00a0\u867d\u7136\u8bf4\u80fd\u517c\u987e\u4e24\u8005\uff0c\u4f46\u771f\u6bd4\u4e0d\u8fc7\u4e13\u4e1a\u7684\u00a0OLTP\u00a0\u548c\u00a0OLAP\u3002\u5c31\u50cf\u5168\u80fd\u9009\u624b\uff0c\u5355\u6253\u72ec\u6597\u53ef\u80fd\u5e72\u4e0d\u8fc7\u4e13\u9879\u51a0\u519b\u3002<\/li>\n\n\n\n<li><strong>\u6ce8\u610f\u6280\u672f\u5728\u53d1\u5c55\uff1a<\/strong>\u73b0\u5728\u5b9e\u65f6\u6570\u4ed3\u3001\u6e56\u4ed3\u4e00\u4f53\u8fd9\u4e9b\u6280\u672f\uff0c\u8ba9\u4e24\u8005\u8fb9\u754c\u6709\u70b9\u6a21\u7cca\u4e86\uff0c<strong>\u4f46\u6838\u5fc3\u7684\u5dee\u5f02\u2014\u2014\u4e8b\u52a1\u7279\u6027\u3001\u6570\u636e\u64cd\u4f5c\u7c7b\u578b\uff0c\u8fd8\u662f\u5b58\u5728\u7684\u3002<\/strong><\/li>\n<\/ul>\n\n\n\n<p><strong>\u4e8c\u3001\u600e\u4e48\u9009\uff1f\u56db\u4e2a\u7ef4\u5ea6\u5e2e\u4f60\u5b9a<br><br><\/strong><\/p>\n\n\n\n<p>\u77e5\u9053\u4e86\u672c\u8d28\u5dee\u5f02\uff0c\u63a5\u4e0b\u6765\u5c31\u8bf4\u8bf4\u600e\u4e48\u9009\u3002\u6211\u603b\u7ed3\u4e86\u56db\u4e2a\u7ef4\u5ea6\uff0c\u7167\u7740\u770b\uff0c\u57fa\u672c\u9519\u4e0d\u4e86\u3002<\/p>\n\n\n\n<p><strong>\u7ef4\u5ea6 1\uff1a\u770b\u4e1a\u52a1\u662f\u201c\u505a\u4e8b\u201d\u8fd8\u662f\u201c\u5206\u6790\u201d<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u4e1a\u52a1\u6838\u5fc3\u662f\u5904\u7406\u7528\u6237\u7684\u5b9e\u65f6\u64cd\u4f5c\uff0c\u6bd4\u5982\u4e0b\u5355\u3001\u652f\u4ed8\uff0c\u8fd8\u5f97\u4fdd\u8bc1\u64cd\u4f5c\u51c6\u786e\uff0c\u90a3\u5c31\u9009&nbsp;OLTP\uff1b\u5982\u679c\u662f\u8981\u4ece\u5386\u53f2\u6570\u636e\u91cc\u627e\u89c4\u5f8b\uff0c\u6bd4\u5982\u7528\u6237\u5206\u7fa4\u3001\u9500\u552e\u9884\u6d4b\uff0c\u9700\u8981\u590d\u6742\u67e5\u8be2\uff0c\u90a3\u5c31\u9009&nbsp;OLAP\u3002<\/p>\n\n\n\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7535\u5546\u7684\u8ba2\u5355\u7cfb\u7edf\u80af\u5b9a\u662f\u00a0OLTP\uff0c\u7528\u6237\u4e0b\u5355\u5f97\u5b9e\u65f6\u6263\u5e93\u5b58\u3001\u751f\u6210\u8ba2\u5355\uff1b<\/li>\n\n\n\n<li>\u800c\u5927\u4fc3\u540e\u7684\u590d\u76d8\u7cfb\u7edf\uff0c\u8981\u5206\u6790\u4e0d\u540c\u6e20\u9053\u3001\u5546\u54c1\u7684\u9500\u552e\u60c5\u51b5\uff0c\u8fd9\u5c31\u5f97\u7528\u00a0OLAP\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u7ef4\u5ea6 2\uff1a\u770b\u6570\u636e\u662f\u201c\u5e38\u53d8\u201d\u8fd8\u662f\u201c\u57fa\u672c\u4e0d\u52a8\u201d<\/strong><\/p>\n\n\n\n<p>OLTP\u9760\u884c\u5f0f\u5b58\u50a8\u3001B+ \u6811\u7d22\u5f15\u3001\u4e8b\u52a1\u65e5\u5fd7\u8fd9\u4e9b\u6280\u672f\uff0c\u4fdd\u8bc1\u5199\u5f97\u5feb\u3001\u6570\u636e\u51c6\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\uff1a<\/p>\n\n\n\n<p><strong>\u6570\u636e\u8981\u5b9e\u65f6\u5199\u3001\u5199\u5b8c\u9a6c\u4e0a\u67e5\uff0c\u6bd4\u5982\u8ba2\u5355\u72b6\u6001\uff0c\u5c31\u5f97\u7528&nbsp;OLTP\u3002<\/strong><\/p>\n\n\n\n<p><strong>OLAP\u7528\u5217\u5f0f\u5b58\u50a8\u3001\u9884\u8ba1\u7b97\u8fd9\u4e9b\u62db\uff0c\u8ba9\u67e5\u8be2\u6548\u7387\u66f4\u9ad8\u3002<\/strong><\/p>\n\n\n\n<p>\u6240\u4ee5\uff1a<\/p>\n\n\n\n<p>\u6570\u636e\u662f\u5386\u53f2\u6c89\u6dc0\uff0c\u6bd4\u5982\u524d\u4e00\u5929\u7684\u8ba2\u5355\u8bb0\u5f55\uff0c\u5199\u5b8c\u57fa\u672c\u4e0d\u52a8\uff0c\u90a3\u5c31\u7528&nbsp;OLAP\u3002<\/p>\n\n\n\n<p>\u5c31\u50cf\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u94f6\u884c\u7684\u6838\u5fc3\u4ea4\u6613\u7cfb\u7edf\uff0c\u6bcf\u79d2\u51e0\u4e07\u7b14\u8f6c\u8d26\uff0c\u5fc5\u987b\u662f\u00a0OLTP\uff1b<\/li>\n\n\n\n<li>\u4f46\u5ba2\u6237\u753b\u50cf\u7cfb\u7edf\uff0c\u6bcf\u5929\u540c\u6b65\u4e00\u6b21\u6570\u636e\u7528\u6765\u5206\u6790\uff0c\u7528\u00a0OLAP\u00a0\u5c31\u5408\u9002\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u7ef4\u5ea6 3\uff1a\u770b\u8c01\u5728\u7528\u8fd9\u4e2a\u7cfb\u7edf<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u662f\u5ba2\u670d\u3001\u67dc\u5458\u3001\u8fd0\u8425\u8fd9\u4e9b\u4e00\u7ebf\u4eba\u5458\u7528\uff0c\u4ed6\u4eec\u5c31\u505a\u70b9\u4fee\u6539\u7528\u6237\u4fe1\u606f\u3001\u63d0\u4ea4\u5ba1\u6279\u4e4b\u7c7b\u7684\u64cd\u4f5c\uff0c\u9009\u00a0OLTP\u3002\u754c\u9762\u5c31\u662f\u8868\u5355\u52a0\u6309\u94ae\uff0c\u8981\u7684\u662f\u5feb\u548c\u65b9\u4fbf\uff1b<\/li>\n\n\n\n<li>\u00a0\u5982\u679c\u662f\u5206\u6790\u5e08\u3001\u6570\u636e\u79d1\u5b66\u5bb6\u5728\u7528\uff0c\u4ed6\u4eec\u8981\u5199 SQL\u3001\u7528 BI \u5de5\u5177\u5206\u6790\u6570\u636e\uff0c\u6bd4\u5982\u770b\u9000\u8d27\u7387\u548c\u7269\u6d41\u65f6\u6548\u7684\u5173\u7cfb\uff0c\u90a3\u5c31\u9009\u00a0OLAP\u3002\u754c\u9762\u5f97\u6709\u67e5\u8be2\u7f16\u8f91\u5668\u548c\u56fe\u8868\uff0c\u65b9\u4fbf\u4ed6\u4eec\u6765\u56de\u8bd5\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u7ef4\u5ea6 4\uff1a\u770b\u5bf9\u6027\u80fd\u7684\u8981\u6c42<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5bf9\u5355\u6b21\u64cd\u4f5c\u7684\u5ef6\u8fdf\u7279\u522b\u654f\u611f\uff0c\u6bd4\u5982\u652f\u4ed8\u8d85\u8fc7 1 \u79d2\u7528\u6237\u5c31\u8dd1\u4e86\uff0c\u5fc5\u987b\u9009\u00a0OLTP\u3002\u5b83\u9760\u7f13\u5b58\u3001\u8bfb\u5199\u5206\u79bb\u8fd9\u4e9b\u6280\u672f\uff0c\u628a\u54cd\u5e94\u65f6\u95f4\u538b\u5230\u6beb\u79d2\u7ea7\uff1b<\/li>\n\n\n\n<li>\u00a0\u8981\u540c\u65f6\u5904\u7406\u5927\u91cf\u67e5\u8be2\uff0c\u6bd4\u5982\u4e0a\u767e\u4e2a\u5206\u6790\u5e08\u540c\u65f6\u8dd1\u62a5\u8868\uff0c\u90a3\u5c31\u9009\u00a0OLAP\u3002\u5b83\u7528\u5206\u5e03\u5f0f\u8ba1\u7b97\u3001\u5217\u5b58\u538b\u7f29\u8fd9\u4e9b\u529e\u6cd5\uff0c\u80fd\u625b\u4f4f\u5927\u67e5\u8be2\u91cf\u3002<\/li>\n<\/ul>\n\n\n\n<p><strong>\u4e09\u3001\u7cfb\u7edf\u600e\u4e48\u642d\uff1f\u4e00\u6b65\u4e00\u6b65\u6765<br><br><\/strong><\/p>\n\n\n\n<p>\u641e\u6e05\u695a\u9700\u6c42\u4e86\uff0c\u63a5\u4e0b\u6765\u5c31\u662f\u642d\u7cfb\u7edf\u3002\u6211\u5206&nbsp;OLTP&nbsp;\u548c&nbsp;OLAP&nbsp;\u4e24\u79cd\u60c5\u51b5\u8bf4\uff0c\u90fd\u662f\u5e72\u8d27\uff0c\u8bb0\u597d\u4e86\u3002<\/p>\n\n\n\n<p><strong>\u573a\u666f 1\uff1aOLTP \u7cfb\u7edf\u642d\u5efa\uff0c\u6838\u5fc3\u662f\u201c\u7a33\u3001\u5feb\u3001\u51c6\u201d<\/strong><\/p>\n\n\n\n<p>\u642d&nbsp;OLTP&nbsp;\u7cfb\u7edf\uff0c\u76ee\u6807\u5f88\u660e\u786e\uff1a\u5c11\u82b1\u94b1\u3001\u625b\u4f4f\u9ad8\u9891\u4e1a\u52a1\u3001\u6570\u636e\u4e0d\u80fd\u4e22\u3002<\/p>\n\n\n\n<p>\uff081\uff09\u7b2c\u4e00\u6b65\uff1a\u770b\u4e1a\u52a1\u89c4\u6a21\u9009\u6570\u636e\u5e93<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e2d\u5c0f\u4e1a\u52a1\uff08QPS \u5c0f\u4e8e 1 \u4e07\uff09\uff1a\u5f00\u6e90\u7684\u00a0MySQL\u3001PostgreSQL\u00a0\u5c31\u884c\u3002\u751f\u6001\u6210\u719f\uff0c\u652f\u6301\u00a0ACID\uff0c\u641e\u4e2a\u4e3b\u4ece\u590d\u5236\u5b9e\u73b0\u8bfb\u5199\u5206\u79bb\uff0c\u8db3\u591f\u7528\u4e86\uff1b<\/li>\n\n\n\n<li>\u9ad8\u5e76\u53d1\u4e1a\u52a1\uff08QPS \u5927\u4e8e 10 \u4e07\uff09\uff1a\u5f97\u7528\u5206\u5e03\u5f0f\u4e8b\u52a1\u6570\u636e\u5e93\uff0c\u6bd4\u5982\u00a0TiDB\u3001OceanBase\u3002\u80fd\u901a\u8fc7\u52a0\u8282\u70b9\u6269\u5c55\uff0c\u652f\u6301\u5f3a\u4e00\u81f4\u6027\uff0c\u7535\u5546\u5927\u4fc3\u3001\u91d1\u878d\u4ea4\u6613\u5c31\u9760\u5b83\u4eec\uff1b<\/li>\n\n\n\n<li>\u8981\u6c42\u6beb\u79d2\u7ea7\u54cd\u5e94\uff1a\u53ef\u4ee5\u52a0\u4e2a\u00a0Redis\u00a0\u5f53\u7f13\u5b58\uff0c\u628a\u5546\u54c1\u5e93\u5b58\u8fd9\u4e9b\u9ad8\u9891\u8bbf\u95ee\u7684\u6570\u636e\u653e\u5185\u5b58\u91cc\uff0c\u51cf\u8f7b\u4e3b\u5e93\u538b\u529b\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u7528\u8fc7\u6765\u4eba\u7684\u7ecf\u9a8c\u544a\u8bc9\u4f60\uff0c\u522b\u4e00\u5f00\u59cb\u5c31\u4e0a\u590d\u6742\u7684\uff0c\u591f\u7528\u5c31\u884c\u3002<\/p>\n\n\n\n<p>\uff082\uff09\u7b2c\u4e8c\u6b65\uff1a\u67b6\u6784\u8bbe\u8ba1<\/p>\n\n\n\n<p>\uff083\uff09\u7b2c\u4e09\u6b65\uff1a\u76d1\u63a7\u548c\u5907\u4efd<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5b9e\u65f6\u76d1\u63a7\uff1a\u7528\u00a0Prometheus+Grafana\u00a0\u76d1\u63a7 QPS\u3001\u5ef6\u8fdf\u3001\u9501\u7b49\u5f85\u8fd9\u4e9b\u6307\u6807\uff0c\u6162\u67e5\u8be2\u8d76\u7d27\u5904\u7406\uff1b<\/li>\n\n\n\n<li>\u5b9a\u671f\u5907\u4efd\uff1a\u5168\u91cf\u5907\u4efd\u52a0\u589e\u91cf\u65e5\u5fd7\uff0c\u6bd4\u5982\u00a0MySQL \u7528 Percona XtraBackup \u52a0 Binlog\uff0c\u786e\u4fdd\u6570\u636e\u4e22\u4e86\u80fd\u5feb\u901f\u6062\u590d\uff0c\u6700\u597d 5 \u5206\u949f\u5185\uff1b<\/li>\n\n\n\n<li>\u5bb9\u707e\u5f97\u505a\u597d\uff1a\u8de8\u673a\u623f\u90e8\u7f72\u4e3b\u5907\u8282\u70b9\uff0c\u6bd4\u5982\u963f\u91cc\u4e91\u7684\u201c\u4e09\u5730\u4e94\u4e2d\u5fc3\u201d\uff0c\u522b\u56e0\u4e3a\u4e00\u4e2a\u673a\u623f\u51fa\u95ee\u9898\uff0c\u4e1a\u52a1\u5c31\u505c\u4e86\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u7279\u522b\u63d0\u9192\uff1a\u5343\u4e07\u522b\u4e3a\u4e86\u65b9\u4fbf\u5206\u6790\u5c31\u4e71\u52a0\u7d22\u5f15\uff0c\u5199\u64cd\u4f5c\u4f1a\u53d8\u6162\uff0c\u6700\u540e\u6574\u4e2a\u7cfb\u7edf\u90fd\u53d7\u5f71\u54cd\u3002<\/p>\n\n\n\n<p><strong>\u573a\u666f 2\uff1aOLAP \u7cfb\u7edf\u642d\u5efa\uff0c\u5173\u952e\u662f\u201c\u5feb\u3001\u6d3b\u3001\u7701\u201d<\/strong><\/p>\n\n\n\n<p>\u642d&nbsp;OLAP&nbsp;\u7cfb\u7edf\uff0c\u5c31\u662f\u8981\u7528\u5408\u7406\u7684\u6210\u672c\uff0c\u8ba9\u590d\u6742\u67e5\u8be2\u8dd1\u5f97\u987a\uff0c\u6570\u636e\u63a5\u5165\u4e5f\u65b9\u4fbf\u3002<\/p>\n\n\n\n<p>\uff081\uff09\u7b2c\u4e00\u6b65\uff1a\u9009\u5f15\u64ce\uff0c\u770b\u6570\u636e\u91cf\u548c\u67e5\u8be2\u590d\u6742\u5ea6<\/p>\n\n\n\n<p>\uff082\uff09\u7b2c\u4e8c\u6b65\uff1a\u6570\u636e\u600e\u4e48\u8fdb\u6765\uff0c\u600e\u4e48\u5b58<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6279\u91cf\u5bfc\u5165\uff1a\u524d\u4e00\u5929\u7684\u8ba2\u5355\u6570\u636e\uff0c\u7528FineDataLink\u4ece\u5173\u7cfb\u5e93\u5bfc\u5230 Hive\uff0c\u6216\u8005\u76f4\u63a5\u7528\u6570\u636e\u5e93\u7684\u5bfc\u51fa\u5de5\u5177\uff1b<\/li>\n\n\n\n<li>\u5b9e\u65f6\u6444\u5165\uff1a\u50cf\u76f4\u64ad\u5e26\u8d27\u7684\u5b9e\u65f6 GMV\uff0c\u5c31\u5f97\u7528\u00a0Kafka+Flink\u3002Kafka\u00a0\u5148\u5b58\u7740\u6570\u636e\uff0cFlink\u00a0\u6e05\u6d17\u8f6c\u6362\u540e\u5199\u5230\u00a0OLAP\u00a0\u6570\u636e\u5e93\uff1b<\/li>\n\n\n\n<li>\u5b58\u50a8\u4f18\u5316\uff1a\u7528\u5217\u5f0f\u5b58\u50a8\u51cf\u5c11 IO\uff0c\u6309\u7ef4\u5ea6\u5206\u533a\uff0c\u6bd4\u5982\u8ba2\u5355\u8868\u6309\u6708\u5206\uff0c\u6309\u6307\u6807\u6392\u5e8f\uff0c\u6bd4\u5982\u7528\u6237\u884c\u4e3a\u8868\u6309\u7528\u6237 ID \u6392\uff0c\u67e5\u8d77\u6765\u5c31\u5feb<\/li>\n<\/ul>\n\n\n\n<p>\uff083\uff09\u7b2c\u4e09\u6b65\uff1a\u67e5\u8be2\u600e\u4e48\u4f18\u5316\uff0c\u8dd1\u5f97\u66f4\u5feb<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9884\u8ba1\u7b97\u7ed3\u679c\uff1a\u7ecf\u5e38\u67e5\u7684\uff0c\u6bd4\u5982\u201c\u6bcf\u65e5\u5404\u54c1\u7c7b\u9500\u552e\u989d\u201d\uff0c\u5728FineDataLink\u4e2d\u5efa\u4e2a\u7269\u5316\u89c6\u56fe\u63d0\u524d\u7b97\u597d\u5b58\u7740\uff0c\u4e0d\u7528\u6bcf\u6b21\u67e5\u90fd\u91cd\u65b0\u7b97\uff1b<\/li>\n\n\n\n<li>\u7528\u5411\u91cf\u5316\u6267\u884c\uff1a\u73b0\u5728\u7684\u00a0OLAP\u00a0\u6570\u636e\u5e93\uff0c\u6bd4\u5982 ClickHouse\u3001StarRocks\uff0c\u90fd\u652f\u6301\u628a\u6570\u636e\u6309\u5217\u6253\u5305\u6210\u5411\u91cf\uff0c\u7528 CPU \u6307\u4ee4\u7ea7\u4f18\u5316\u6765\u7b97\u5904\u7406\u66f4\u5feb\uff1b<\/li>\n\n\n\n<li>\u8d44\u6e90\u5206\u5f00\u7528\uff1a\u7528\u8d44\u6e90\u7ec4\u6216\u8005\u5bb9\u5668\u5316\uff0c\u628a BI \u5de5\u5177\u7684\u67e5\u8be2\u548c\u5206\u6790\u5e08\u7684\u5373\u5e2d\u67e5\u8be2\u5206\u5f00\uff0c\u522b\u8ba9\u5927\u67e5\u8be2\u5360\u4e86\u5c0f\u67e5\u8be2\u7684\u8d44\u6e90\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u6ce8\u610f\u4e8b\u9879\uff1a<\/p>\n\n\n\n<p><strong>OLAP&nbsp;\u6700\u6015\u6570\u636e\u503e\u659c\uff0c\u89e3\u51b3\u529e\u6cd5\u5c31\u662f\u5efa\u8868\u65f6\u7528\u201cDISTRIBUTE BY HASH (UserID)\u201d\u5206\u6563\u6570\u636e\uff0c\u6216\u8005\u67e5\u8be2\u65f6\u624b\u52a8\u628a\u5f02\u5e38\u503c\u8fc7\u6ee4\u6389\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u56db\u3001\u6df7\u5408\u5f0f\u7684HTAP\u662f\u672a\u6765\u5417\uff1f<br><br><\/strong><\/p>\n\n\n\n<p>\u6700\u8fd1&nbsp;HTAP&nbsp;\u633a\u706b\uff0c\u8bf4\u80fd\u4e00\u5957\u7cfb\u7edf\u540c\u65f6\u652f\u6301&nbsp;OLTP&nbsp;\u548c&nbsp;OLAP\uff0c\u4e0d\u7528\u6765\u56de\u540c\u6b65\u6570\u636e\u3002\u4f46\u5b83\u771f\u7684\u90a3\u4e48\u795e\u5417\uff1f<\/p>\n\n\n\n<p>HTAP\u7684\u597d\u5904\u662f\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6570\u636e\u5b9e\u65f6\u540c\u6b65\uff0c\u4e0d\u7528\u641e ETL\uff1b<\/li>\n\n\n\n<li>\u7cfb\u7edf\u7b80\u5355\uff0c\u5c31\u7ef4\u62a4\u4e00\u5957\u6570\u636e\u5e93\uff1b<\/li>\n\n\n\n<li>\u8fd8\u80fd\u5728\u4e8b\u52a1\u91cc\u505a\u5206\u6790\uff0c\u6bd4\u5982\u4e0b\u5355\u540e\u9a6c\u4e0a\u770b\u7528\u6237\u5386\u53f2\u8d2d\u4e70\u8bb0\u5f55\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4f46\u7f3a\u70b9\u4e5f\u660e\u663e\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5904\u7406\u4e8b\u52a1\u4e0d\u5982\u4e13\u4e1a\u00a0OLTP\u00a0\u5feb\uff0c\u56e0\u4e3a\u5b83\u7684\u5b58\u50a8\u5f15\u64ce\u8981\u540c\u65f6\u7167\u987e\u884c\u5b58\u548c\u5217\u5b58\uff0c\u5199\u5165\u5f00\u9500\u5927\uff1b<\/li>\n\n\n\n<li>\u5206\u6790\u8d77\u6765\u4e5f\u4e0d\u5982\u4e13\u4e1a\u00a0OLAP\u00a0\u7075\u6d3b\uff0c\u590d\u6742\u67e5\u8be2\u53ef\u80fd\u8fd8\u5f97\u626b\u884c\u5b58\uff0c\u6548\u7387\u4f4e\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u4f46\u662f\uff1a<\/p>\n\n\n\n<p>\u5bf9\u5927\u90e8\u5206\u4f01\u4e1a\u6765\u8bf4\uff0cOLTP&nbsp;\u548c&nbsp;OLAP&nbsp;\u5206\u5f00\u7528\u66f4\u5b9e\u5728\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7528\u4e13\u4e1a\u00a0OLTP\u00a0\u8dd1\u4e1a\u52a1\uff0c<\/li>\n\n\n\n<li>\u7528\u4e13\u4e1a\u00a0OLAP\u00a0\u505a\u5206\u6790\uff0c<\/li>\n\n\n\n<li>\u4e2d\u95f4\u7528 ETL \u6216\u8005\u00a0Debezium\u3001Canal \u8fd9\u4e9b\u5de5\u5177\u540c\u6b65\u6570\u636e\u3002<\/li>\n<\/ul>\n\n\n\n<p>\u53ea\u6709\u90a3\u79cd\u65e2\u9700\u8981\u9ad8\u5e76\u53d1\u4e8b\u52a1\uff0c\u53c8\u5f97\u5b9e\u65f6\u5206\u6790\u7684\u573a\u666f\uff0c\u6bd4\u5982\u94f6\u884c\u6838\u5fc3\u7cfb\u7edf\u8981\u5b9e\u65f6\u7b97\u5ba2\u6237\u98ce\u9669\u7b49\u7ea7\uff0c\u624d\u8003\u8651&nbsp;HTAP\u3002<\/p>\n\n\n\n<p><strong>\u603b\u7ed3<br><br><\/strong><\/p>\n\n\n\n<p>\u9009&nbsp;OLTP&nbsp;\u8fd8\u662f&nbsp;OLAP\uff0c\u8bf4\u5230\u5e95\u662f\u770b\u4e1a\u52a1\u9700\u6c42\u548c\u6280\u672f\u80fd\u4e0d\u80fd\u5339\u914d\u4e0a\u3002<\/p>\n\n\n\n<p>\u4e0d\u662f\u8bf4\u54ea\u4e2a\u9ad8\u7ea7\u5c31\u7528\u54ea\u4e2a\uff0c\u5f97\u770b\u4e1a\u52a1\u662f\u8981\u201c\u6267\u884c\u4ea4\u6613\u201d\u8fd8\u662f\u201c\u5206\u6790\u51b3\u7b56\u201d\uff0c\u6570\u636e\u662f\u201c\u5e38\u53d8\u201d\u8fd8\u662f\u201c\u57fa\u672c\u4e0d\u52a8\u201d\uff0c\u8c01\u5728\u7528\uff0c\u5bf9\u6027\u80fd\u8981\u6c42\u662f\u4ec0\u4e48\u3002<\/p>\n\n\n\n<p>\u56e0\u4e3a\u6280\u672f\u662f\u4e3a\u4e1a\u52a1\u670d\u52a1\u7684\u3002\u4e0d\u7ba1\u9009\u54ea\u4e2a\uff0c\u80fd\u8ba9\u6570\u636e\u8dd1\u5f97\u987a\u3001\u7528\u5f97\u597d\uff0c\u7ed9\u4e1a\u52a1\u5e26\u6765\u4ef7\u503c\uff0c\u624d\u662f\u597d\u7528\u7684\u3002\u4f60\u8bf4\u5bf9\u4e0d\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001OLTP\u548cOLAP\uff0c\u5230\u5e95\u6709\u5565\u533a\u522b\uff1f \u8981\u5206\u6e05\u695a OLTP \u548c OLAP\uff0c\u4e0d\u7528\u770b\u90a3\u4e9b\u590d\u6742\u5b9a\u4e49\uff0c\u5c31\u770b\u5b83\u4eec\u5e72\u7684\u662f\u5565 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":565,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-9"],"_links":{"self":[{"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/posts\/561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/comments?post=561"}],"version-history":[{"count":1,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/posts\/561\/revisions"}],"predecessor-version":[{"id":566,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/posts\/561\/revisions\/566"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/media\/565"}],"wp:attachment":[{"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/media?parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/categories?post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.applicationsofllm.com\/index.php\/wp-json\/wp\/v2\/tags?post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}