{"id":59331,"date":"2026-01-13T18:09:01","date_gmt":"2026-01-13T10:09:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/59331.html"},"modified":"2026-01-13T18:09:01","modified_gmt":"2026-01-13T10:09:01","slug":"%e5%b0%8f%e6%8a%80%e5%b7%a727mrr-%e5%a6%82%e4%bd%95%e9%87%8d%e5%a1%91%e5%9b%9e%e8%a1%a8-i-o%ef%bc%9a%e4%bb%8e%e9%9a%8f%e6%9c%ba%e8%ae%bf%e9%97%ae%e5%88%b0%e9%a1%ba%e5%ba%8f%e8%af%bb%e5%8f%96","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/59331.html","title":{"rendered":"[\u5c0f\u6280\u5de727]MRR \u5982\u4f55\u91cd\u5851\u56de\u8868 I\/O\uff1a\u4ece\u968f\u673a\u8bbf\u95ee\u5230\u987a\u5e8f\u8bfb\u53d6\u7684\u6027\u80fd\u8dc3\u8fc1"},"content":{"rendered":"<h2>\u4e00\u3001\u4ec0\u4e48\u662f MRR&#xff08;Multi-Range Read&#xff09;&#xff1f;<\/h2>\n<p>MRR&#xff08;Multi-Range Read&#xff09; \u662f MySQL \u4ece 5.6 \u7248\u672c\u5f00\u59cb\u5f15\u5165\u7684\u4e00\u79cd\u4f18\u5316\u6280\u672f&#xff0c;\u4e3b\u8981\u7528\u4e8e\u4f18\u5316 \u57fa\u4e8e\u975e\u805a\u7c07\u7d22\u5f15&#xff08;Secondary Index&#xff09;\u8fdb\u884c\u8303\u56f4\u67e5\u8be2\u6216 IN \u67e5\u8be2\u540e\u56de\u8868&#xff08;lookup&#xff09;\u4e3b\u952e\u6570\u636e \u7684 I\/O \u6548\u7387\u3002<\/p>\n<p>\u5728\u6ca1\u6709 MRR \u7684\u60c5\u51b5\u4e0b&#xff0c;MySQL \u6267\u884c\u5668\u4f1a\u9010\u884c\u901a\u8fc7\u4e8c\u7ea7\u7d22\u5f15\u67e5\u5230\u4e3b\u952e\u503c\u540e&#xff0c;\u7acb\u5373\u53bb\u805a\u7c07\u7d22\u5f15&#xff08;InnoDB \u7684\u4e3b\u952e\u7d22\u5f15&#xff09;\u4e2d\u67e5\u627e\u5bf9\u5e94\u7684\u5b8c\u6574\u884c\u6570\u636e\u3002\u8fd9\u79cd\u201c\u968f\u673a I\/O\u201d\u6a21\u5f0f\u5728\u5927\u91cf\u56de\u8868\u64cd\u4f5c\u65f6\u6548\u7387\u6781\u4f4e\u3002<\/p>\n<p>MRR \u7684\u6838\u5fc3\u601d\u60f3\u662f&#xff1a;\u5c06\u591a\u4e2a\u9700\u8981\u56de\u8868\u7684\u4e3b\u952e\u503c\u5148\u6536\u96c6\u8d77\u6765&#xff0c;\u6392\u5e8f\u540e\u518d\u6279\u91cf\u987a\u5e8f\u8bfb\u53d6\u805a\u7c07\u7d22\u5f15\u4e2d\u7684\u6570\u636e\u9875&#xff0c;\u4ece\u800c\u5c06\u539f\u672c\u7684\u968f\u673a I\/O \u8f6c\u5316\u4e3a\u8fd1\u4f3c\u987a\u5e8f I\/O&#xff0c;\u5927\u5e45\u63d0\u5347\u78c1\u76d8\u8bfb\u53d6\u6548\u7387&#xff08;\u5c24\u5176\u5bf9\u673a\u68b0\u786c\u76d8\u6548\u679c\u663e\u8457&#xff09;\u3002<\/p>\n<h2>\u4e8c\u3001MRR \u7684\u5de5\u4f5c\u539f\u7406<\/h2>\n<h3>1. \u57fa\u672c\u6d41\u7a0b&#xff08;\u4ee5 InnoDB \u5f15\u64ce\u4e3a\u4f8b&#xff09;&#xff1a;<\/h3>\n<li>\u4f7f\u7528\u4e8c\u7ea7\u7d22\u5f15\u626b\u63cf&#xff1a;\u6267\u884c\u5668\u6839\u636e WHERE \u6761\u4ef6&#xff08;\u5982 WHERE key_col BETWEEN 10 AND 100 \u6216 WHERE key_col IN (1, 5, 100&#8230;)&#xff09;\u5728\u4e8c\u7ea7\u7d22\u5f15\u4e0a\u627e\u5230\u5339\u914d\u7684\u8bb0\u5f55\u3002<\/li>\n<li>\u6682\u5b58\u4e3b\u952e\u503c&#xff1a;\u4e0d\u7acb\u5373\u56de\u8868&#xff0c;\u800c\u662f\u5c06\u8fd9\u4e9b\u8bb0\u5f55\u5bf9\u5e94\u7684\u4e3b\u952e\u503c&#xff08;\u6216\u884c\u6307\u9488&#xff09;\u653e\u5165\u4e00\u4e2a\u7f13\u51b2\u533a&#xff08;\u79f0\u4e3a read_rnd_buffer&#xff09;\u3002<\/li>\n<li>\u6392\u5e8f\u4e3b\u952e\u503c&#xff1a;\u5f53\u7f13\u51b2\u533a\u6ee1\u6216\u626b\u63cf\u7ed3\u675f\u65f6&#xff0c;\u5bf9\u5176\u4e2d\u7684\u4e3b\u952e\u503c\u8fdb\u884c\u6392\u5e8f&#xff08;\u6309\u4e3b\u952e\u987a\u5e8f&#xff09;\u3002<\/li>\n<li>\u6279\u91cf\u987a\u5e8f\u56de\u8868&#xff1a;\u6309\u6392\u5e8f\u540e\u7684\u4e3b\u952e\u987a\u5e8f&#xff0c;\u6279\u91cf\u8bbf\u95ee\u805a\u7c07\u7d22\u5f15&#xff0c;\u8bfb\u53d6\u5b8c\u6574\u7684\u884c\u6570\u636e\u3002<\/li>\n<li>\u8fd4\u56de\u7ed3\u679c&#xff1a;\u6700\u540e\u6309\u539f\u59cb\u67e5\u8be2\u987a\u5e8f&#xff08;\u5982\u6709 ORDER BY&#xff09;\u91cd\u65b0\u6392\u5e8f\u5e76\u8fd4\u56de\u3002<\/li>\n<p>MRR \u5728 Server \u5c42\u4e2d\u201c\u53d1\u6325\u4f5c\u7528\u201d&#xff0c;\u4f46\u9700\u8981\u5b58\u50a8\u5f15\u64ce\u914d\u5408\u624d\u80fd\u751f\u6548<\/p>\n<h3>2. \u5173\u952e\u53c2\u6570<\/h3>\n<ul>\n<li>read_rnd_buffer_size&#xff1a;\u63a7\u5236 MRR \u7f13\u51b2\u533a\u5927\u5c0f&#xff08;\u5355\u4f4d\u5b57\u8282&#xff09;&#xff0c;\u9ed8\u8ba4 256KB\u3002\u589e\u5927\u8be5\u503c\u53ef\u63d0\u5347 MRR \u6279\u91cf\u5904\u7406\u80fd\u529b&#xff0c;\u4f46\u4f1a\u5360\u7528\u66f4\u591a\u5185\u5b58\u3002<\/li>\n<li>optimizer_switch \u4e2d\u7684 mrr \u548c mrr_cost_based&#xff1a;\n<ul>\n<li>mrr&#061;on\/off&#xff1a;\u662f\u5426\u542f\u7528 MRR\u3002<\/li>\n<li>mrr_cost_based&#061;on\/off&#xff1a;\u662f\u5426\u57fa\u4e8e\u6210\u672c\u6a21\u578b\u51b3\u5b9a\u662f\u5426\u4f7f\u7528 MRR&#xff08;\u9ed8\u8ba4 on&#xff09;\u3002\u82e5\u8bbe\u4e3a off&#xff0c;\u5219\u53ea\u8981\u53ef\u80fd\u5c31\u5f3a\u5236\u4f7f\u7528 MRR\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u53ef\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b&#xff1a;<\/p>\n<p><span class=\"token keyword\">SELECT<\/span> &#064;<span class=\"token variable\">&#064;optimizer_switch<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token comment\">&#8212; \u793a\u4f8b\u8f93\u51fa\u4e2d\u5305\u542b&#xff1a;mrr&#061;on,mrr_cost_based&#061;on<\/span><\/p>\n<h2>\u4e09\u3001MRR \u7684\u9002\u7528\u573a\u666f<\/h2>\n<p>MRR \u4e3b\u8981\u5728\u4ee5\u4e0b\u573a\u666f\u4e0b\u751f\u6548&#xff1a;<\/p>\n<li>\n<p>\u4e8c\u7ea7\u7d22\u5f15\u8303\u56f4\u67e5\u8be2 &#043; \u56de\u8868<\/p>\n<p><span class=\"token keyword\">SELECT<\/span> <span class=\"token operator\">*<\/span> <span class=\"token keyword\">FROM<\/span> t <span class=\"token keyword\">WHERE<\/span> idx_col <span class=\"token operator\">BETWEEN<\/span> <span class=\"token number\">100<\/span> <span class=\"token operator\">AND<\/span> <span class=\"token number\">200<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<\/li>\n<li>\n<p>IN \u67e5\u8be2 &#043; \u56de\u8868<\/p>\n<p><span class=\"token keyword\">SELECT<\/span> <span class=\"token operator\">*<\/span> <span class=\"token keyword\">FROM<\/span> t <span class=\"token keyword\">WHERE<\/span> idx_col <span class=\"token operator\">IN<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">100<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<\/li>\n<li>\n<p>JOIN \u4e2d\u4f7f\u7528\u4e8c\u7ea7\u7d22\u5f15\u8fdb\u884c lookup&#xff08;Batched Key Access, BKA&#xff09;<br \/>\nBKA \u662f MRR \u7684\u6269\u5c55&#xff0c;\u7528\u4e8e\u4f18\u5316 JOIN\u3002\u5f53\u4f7f\u7528 JOIN \u4e14\u9a71\u52a8\u8868\u7ed3\u679c\u7528\u4e8e\u88ab\u9a71\u52a8\u8868\u7684\u7d22\u5f15\u67e5\u627e\u65f6&#xff0c;BKA \u4f1a\u5229\u7528 MRR \u6279\u91cf\u83b7\u53d6\u88ab\u9a71\u52a8\u8868\u7684\u6570\u636e\u3002<\/p>\n<\/li>\n<p>\u26a0\ufe0f \u6ce8\u610f&#xff1a;MRR \u4ec5\u9002\u7528\u4e8e \u9700\u8981\u56de\u8868 \u7684\u60c5\u51b5\u3002\u5982\u679c\u67e5\u8be2\u662f\u8986\u76d6\u7d22\u5f15&#xff08;Covering Index&#xff09;&#xff0c;\u5373\u6240\u6709\u5b57\u6bb5\u90fd\u5728\u4e8c\u7ea7\u7d22\u5f15\u4e2d&#xff0c;\u5219\u65e0\u9700\u56de\u8868&#xff0c;MRR \u4e0d\u4f1a\u89e6\u53d1\u3002<\/p>\n<h2>\u56db\u3001MRR \u7684\u4f18\u52bf\u4e0e\u5c40\u9650<\/h2>\n<h3>\u4f18\u52bf&#xff1a;<\/h3>\n<ul>\n<li>\u663e\u8457\u51cf\u5c11\u968f\u673a I\/O&#xff1a;\u5c06\u591a\u6b21\u968f\u673a\u78c1\u76d8\u8bbf\u95ee\u5408\u5e76\u4e3a\u987a\u5e8f\u8bbf\u95ee&#xff0c;\u5bf9 HDD \u6027\u80fd\u63d0\u5347\u660e\u663e&#xff08;SSD \u4e0a\u4e5f\u6709\u4e00\u5b9a\u6536\u76ca&#xff09;\u3002<\/li>\n<li>\u63d0\u9ad8\u7f13\u5b58\u547d\u4e2d\u7387&#xff1a;\u987a\u5e8f\u8bfb\u53d6\u66f4\u5229\u4e8e InnoDB Buffer Pool \u7684\u5c40\u90e8\u6027\u539f\u7406\u3002<\/li>\n<li>\u4e0e BKA \u8054\u52a8\u4f18\u5316 JOIN&#xff1a;\u5728\u591a\u8868\u8fde\u63a5\u4e2d\u5927\u5e45\u51cf\u5c11\u5d4c\u5957\u5faa\u73af\u7684 I\/O \u5f00\u9500\u3002<\/li>\n<\/ul>\n<h3>\u5c40\u9650&#xff1a;<\/h3>\n<ul>\n<li>\u589e\u52a0 CPU \u548c\u5185\u5b58\u5f00\u9500&#xff1a;\u9700\u8981\u6392\u5e8f\u4e3b\u952e\u503c&#xff0c;\u6d88\u8017 CPU&#xff1b;\u7f13\u51b2\u533a\u5360\u7528\u5185\u5b58\u3002<\/li>\n<li>\u53ef\u80fd\u6253\u4e71\u7ed3\u679c\u987a\u5e8f&#xff1a;\u82e5\u67e5\u8be2\u4f9d\u8d56\u539f\u59cb\u987a\u5e8f&#xff08;\u5982\u65e0 ORDER BY \u4f46\u5e94\u7528\u5047\u5b9a\u987a\u5e8f&#xff09;&#xff0c;\u9700\u6ce8\u610f MRR \u53ef\u80fd\u6539\u53d8\u8fd4\u56de\u987a\u5e8f&#xff08;\u4e0d\u8fc7 MySQL \u901a\u5e38\u4f1a\u4fdd\u8bc1\u903b\u8f91\u6b63\u786e\u6027&#xff09;\u3002<\/li>\n<li>\u6210\u672c\u6a21\u578b\u53ef\u80fd\u8bef\u5224&#xff1a;\u5728 mrr_cost_based&#061;on \u65f6&#xff0c;\u4f18\u5316\u5668\u53ef\u80fd\u56e0\u7edf\u8ba1\u4fe1\u606f\u4e0d\u51c6\u800c\u9519\u8bef\u5730\u7981\u7528 MRR\u3002<\/li>\n<li>\u5bf9 SSD \u6548\u679c\u51cf\u5f31&#xff1a;SSD(Solid State Drive&#xff0c;\u56fa\u6001\u786c\u76d8) \u968f\u673a\u8bfb\u6027\u80fd\u63a5\u8fd1\u987a\u5e8f\u8bfb&#xff0c;MRR \u6536\u76ca\u4e0d\u5982 HDD(Hard Disk Drive&#xff0c;\u673a\u68b0\u786c\u76d8) \u660e\u663e\u3002<\/li>\n<\/ul>\n<h2>\u4e94\u3001MRR \u4e0e\u76f8\u5173\u6280\u672f\u5bf9\u6bd4<\/h2>\n<table>\n<tr>\u6280\u672f\u76ee\u7684\u662f\u5426\u9700\u8981\u56de\u8868I\/O \u6a21\u5f0f\u4f18\u5316<\/tr>\n<tbody>\n<tr>\n<td>MRR<\/td>\n<td>\u4f18\u5316\u4e8c\u7ea7\u7d22\u5f15\u56de\u8868<\/td>\n<td>\u662f<\/td>\n<td>\u968f\u673a \u2192 \u987a\u5e8f<\/td>\n<\/tr>\n<tr>\n<td>\u8986\u76d6\u7d22\u5f15&#xff08;Covering Index&#xff09;<\/td>\n<td>\u907f\u514d\u56de\u8868<\/td>\n<td>\u5426<\/td>\n<td>\u5b8c\u5168\u907f\u514d\u56de\u8868 I\/O<\/td>\n<\/tr>\n<tr>\n<td>ICP&#xff08;Index Condition Pushdown&#xff09;<\/td>\n<td>\u51cf\u5c11\u56de\u8868\u6b21\u6570<\/td>\n<td>\u662f<\/td>\n<td>\u5728\u5b58\u50a8\u5f15\u64ce\u5c42\u8fc7\u6ee4&#xff0c;\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u56de\u8868<\/td>\n<\/tr>\n<tr>\n<td>BKA&#xff08;Batched Key Access&#xff09;<\/td>\n<td>\u4f18\u5316 JOIN \u4e2d\u7684 lookup<\/td>\n<td>\u662f<\/td>\n<td>\u57fa\u4e8e MRR \u5b9e\u73b0\u6279\u91cf\u56de\u8868<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b9e\u9645\u4e2d&#xff0c;MRR \u5e38\u4e0e ICP\u3001BKA \u914d\u5408\u4f7f\u7528&#xff0c;\u5f62\u6210\u7ec4\u5408\u4f18\u5316\u3002<\/p>\n<h2>\u516d\u3001MRR \u5982\u4f55\u4e0e Buffer Pool \u4ea4\u4e92&#xff1f;<\/h2>\n<h3>1. \u63d0\u5347 Buffer Pool \u547d\u4e2d\u7387&#xff08;Cache Locality&#xff09;<\/h3>\n<p>\u5728\u975e MRR \u6a21\u5f0f\u4e0b&#xff1a;<\/p>\n<ul>\n<li>\u56de\u8868\u64cd\u4f5c\u6309\u4e8c\u7ea7\u7d22\u5f15\u7684\u987a\u5e8f\u8fdb\u884c&#xff0c;\u800c\u4e8c\u7ea7\u7d22\u5f15\u7684\u4e3b\u952e\u503c\u901a\u5e38\u662f\u65e0\u5e8f\u7684&#xff08;\u9664\u975e\u662f\u81ea\u589e\u4e3b\u952e\u4e14\u63d2\u5165\u6709\u5e8f&#xff09;\u3002<\/li>\n<li>\u5bfc\u81f4\u805a\u7c07\u7d22\u5f15\u9875\u7684\u8bbf\u95ee\u5448\u968f\u673a\u5206\u5e03&#xff0c;\u53ef\u80fd\u9891\u7e41\u8bbf\u95ee\u4e0d\u540c\u6570\u636e\u9875&#xff0c;\u8d85\u51fa Buffer Pool \u5bb9\u91cf\u540e\u9020\u6210\u5927\u91cf\u6362\u5165\u6362\u51fa&#xff08;thrashing&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u542f\u7528 MRR \u540e&#xff1a;<\/p>\n<ul>\n<li>\u4e3b\u952e\u503c\u88ab\u6392\u5e8f&#xff0c;\u56de\u8868\u65f6\u6309\u4e3b\u952e\u5347\u5e8f\u8bbf\u95ee\u805a\u7c07\u7d22\u5f15\u3002<\/li>\n<li>\u805a\u7c07\u7d22\u5f15\u5728\u7269\u7406\u4e0a\u6309\u4e3b\u952e\u987a\u5e8f\u5b58\u50a8&#xff0c;\u56e0\u6b64\u8fde\u7eed\u7684\u4e3b\u952e\u5f80\u5f80\u843d\u5728\u76f8\u90bb\u7684\u6570\u636e\u9875\u4e2d\u3002<\/li>\n<li>\u8fd9\u4f7f\u5f97&#xff1a;\n<ul>\n<li>\u5df2\u52a0\u8f7d\u5230 Buffer Pool \u7684\u9875\u66f4\u53ef\u80fd\u88ab\u540e\u7eed\u8bf7\u6c42\u590d\u7528&#xff08;\u7a7a\u95f4\u5c40\u90e8\u6027\u589e\u5f3a&#xff09;&#xff1b;<\/li>\n<li>\u5373\u4f7f\u9875\u4e0d\u5728\u5185\u5b58\u4e2d&#xff0c;\u987a\u5e8f\u8bfb\u4e5f\u66f4\u5bb9\u6613\u89e6\u53d1 InnoDB \u7684\u7ebf\u6027\u9884\u8bfb&#xff08;linear read-ahead&#xff09;&#xff0c;\u63d0\u524d\u52a0\u8f7d\u540e\u7eed\u9875\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u7ed3\u679c&#xff1a;Buffer Pool \u547d\u4e2d\u7387\u63d0\u9ad8&#xff0c;\u7269\u7406 I\/O \u6b21\u6570\u8fdb\u4e00\u6b65\u51cf\u5c11\u3002<\/p>\n<h3>2. \u6fc0\u6d3b InnoDB \u9884\u8bfb\u673a\u5236&#xff08;Read-Ahead&#xff09;<\/h3>\n<p>InnoDB \u6709\u4e24\u79cd\u9884\u8bfb\u673a\u5236&#xff1a;<\/p>\n<ul>\n<li>\u968f\u673a\u9884\u8bfb&#xff08;Random Read-Ahead&#xff09;&#xff1a;\u5f53\u67d0\u4e2a\u533a&#xff08;extent, 1MB&#xff09;\u4e2d\u6709\u4e00\u5b9a\u6570\u91cf\u7684\u9875\u88ab\u8bbf\u95ee&#xff0c;\u5c31\u9884\u8bfb\u6574\u4e2a\u533a&#xff08;MySQL 5.6&#043; \u9ed8\u8ba4\u5173\u95ed&#xff09;\u3002<\/li>\n<li>\u7ebf\u6027\u9884\u8bfb&#xff08;Linear Read-Ahead&#xff09;&#xff1a;\u5f53\u987a\u5e8f\u8bbf\u95ee\u67d0\u4e2a\u533a\u4e2d\u7684\u591a\u4e2a\u9875&#xff08;\u7531 innodb_read_ahead_threshold \u63a7\u5236&#xff0c;\u9ed8\u8ba4 56 \u9875&#xff09;&#xff0c;\u5219\u9884\u8bfb\u4e0b\u4e00\u4e2a\u533a\u3002<\/li>\n<\/ul>\n<p>MRR \u6392\u5e8f\u540e\u7684\u4e3b\u952e\u8bbf\u95ee\u6a21\u5f0f\u5929\u7136\u7b26\u5408\u7ebf\u6027\u9884\u8bfb\u7684\u89e6\u53d1\u6761\u4ef6\u3002\u4f8b\u5982&#xff1a;<\/p>\n<p>\u4e3b\u952e\u6392\u5e8f\u540e&#xff1a;1001, 1002, &#8230;, 1100<br \/>\n\u2192 \u5bf9\u5e94\u805a\u7c07\u7d22\u5f15\u9875\u53ef\u80fd\u662f page#100, page#101, page#102&#8230;<br \/>\n\u2192 \u987a\u5e8f\u8bbf\u95ee \u2192 \u89e6\u53d1 linear read-ahead \u2192 \u63d0\u524d\u52a0\u8f7d page#103&#xff5e;112<\/p>\n<p>\u8fd9\u5728\u626b\u63cf\u5927\u91cf\u6570\u636e\u65f6\u5c24\u4e3a\u6709\u6548&#xff0c;\u5927\u5e45\u51cf\u5c11 I\/O \u7b49\u5f85\u3002<\/p>\n<p>\u6ce8\u610f&#xff1a;\u82e5 read_rnd_buffer_size \u8bbe\u7f6e\u8fc7\u5c0f&#xff0c;MRR \u6279\u6b21\u592a\u5c0f&#xff0c;\u53ef\u80fd\u4e0d\u8db3\u4ee5\u89e6\u53d1\u9884\u8bfb\u3002<\/p>\n<h3>3. \u51cf\u5c11 Buffer Pool \u6c61\u67d3&#xff08;Pollution&#xff09;<\/h3>\n<p>\u5728\u9ad8\u5e76\u53d1 OLTP \u573a\u666f\u4e2d&#xff0c;\u5927\u91cf\u968f\u673a\u56de\u8868\u53ef\u80fd\u5bfc\u81f4&#xff1a;<\/p>\n<ul>\n<li>\u5927\u91cf\u201c\u4e00\u6b21\u6027\u201d\u6570\u636e\u9875\u88ab\u52a0\u8f7d\u8fdb Buffer Pool&#xff1b;<\/li>\n<li>\u6324\u5360\u70ed\u70b9\u6570\u636e\u9875&#xff0c;\u5bfc\u81f4\u7f13\u5b58\u6548\u7387\u4e0b\u964d&#xff08;\u5373\u201c\u7f13\u5b58\u6c61\u67d3\u201d&#xff09;\u3002<\/li>\n<\/ul>\n<p>MRR \u901a\u8fc7\u96c6\u4e2d\u3001\u6279\u91cf\u3001\u987a\u5e8f\u8bbf\u95ee&#xff0c;\u4f7f\u5f97&#xff1a;<\/p>\n<ul>\n<li>\u6570\u636e\u9875\u8bbf\u95ee\u66f4\u96c6\u4e2d&#xff1b;<\/li>\n<li>\u66f4\u5bb9\u6613\u5f62\u6210\u201c\u70ed\u533a\u201d&#xff0c;\u800c\u975e\u5206\u6563\u7684\u51b7\u9875&#xff1b;<\/li>\n<li>\u6709\u5229\u4e8e InnoDB \u7684 old sublist \u673a\u5236&#xff08;\u5c06\u65b0\u8bfb\u5165\u7684\u9875\u5148\u653e\u5165 old \u533a&#xff0c;\u907f\u514d\u7acb\u5373\u6dd8\u6c70\u70ed\u6570\u636e&#xff09;\u3002<\/li>\n<\/ul>\n<h2>\u4e03\u3001\u603b\u7ed3&#xff08;Summary&#xff09;<\/h2>\n<p>MRR&#xff08;Multi-Range Read&#xff09;\u662f MySQL \u9488\u5bf9 \u4e8c\u7ea7\u7d22\u5f15\u56de\u8868\u64cd\u4f5c \u7684\u4e00\u9879\u91cd\u8981 I\/O \u4f18\u5316\u6280\u672f\u3002<br \/>\n\u5176\u6838\u5fc3\u5728\u4e8e \u5c06\u79bb\u6563\u7684\u4e3b\u952e\u67e5\u627e\u8bf7\u6c42\u7f13\u51b2\u3001\u6392\u5e8f\u540e\u6279\u91cf\u987a\u5e8f\u6267\u884c&#xff0c;\u4ece\u800c\u5c06\u9ad8\u6210\u672c\u7684\u968f\u673a I\/O \u8f6c\u5316\u4e3a\u9ad8\u6548\u7684\u987a\u5e8f I\/O\u3002<br \/>\n\u5b83\u5728\u673a\u68b0\u786c\u76d8\u73af\u5883\u4e0b\u6548\u679c\u5c24\u4e3a\u663e\u8457&#xff0c;\u540c\u65f6\u4e3a BKA&#xff08;\u6279\u91cf\u952e\u8bbf\u95ee&#xff09;\u63d0\u4f9b\u57fa\u7840\u652f\u6301&#xff0c;\u6781\u5927\u63d0\u5347\u4e86\u590d\u6742\u67e5\u8be2&#xff08;\u5c24\u5176\u662f\u591a\u8868 JOIN&#xff09;\u7684\u6027\u80fd\u3002<\/p>\n<p>\u5c3d\u7ba1 MRR \u4f1a\u5e26\u6765\u4e00\u5b9a\u7684 CPU \u548c\u5185\u5b58\u5f00\u9500&#xff0c;\u4e14\u5728 SSD \u73af\u5883\u4e0b\u6536\u76ca\u51cf\u5f31&#xff0c;\u4f46\u5728\u5927\u591a\u6570 OLTP \u548c\u6df7\u5408\u8d1f\u8f7d\u573a\u666f\u4e2d&#xff0c;\u5408\u7406\u542f\u7528 MRR \u4ecd\u662f\u63d0\u5347\u67e5\u8be2\u6548\u7387\u7684\u6709\u6548\u624b\u6bb5\u3002<\/p>\n<h2>\u516b\u3001\u9762\u8bd5\u53ef\u80fd\u95ee\u5230\u7684\u95ee\u9898<\/h2>\n<h3>\u95ee\u9898 1&#xff1a;<\/h3>\n<p>MySQL \u4e2d\u7684 MRR&#xff08;Multi-Range Read&#xff09;\u662f\u4ec0\u4e48&#xff1f;\u5b83\u5728\u4ec0\u4e48\u573a\u666f\u4e0b\u751f\u6548&#xff1f;\u4e3a\u4ec0\u4e48\u80fd\u63d0\u5347\u6027\u80fd&#xff1f;<\/p>\n<p>\u8003\u5bdf\u70b9&#xff1a;\u5bf9 MRR \u539f\u7406\u3001\u9002\u7528\u6761\u4ef6\u548c\u6027\u80fd\u6536\u76ca\u7684\u7406\u89e3\u3002<\/p>\n<p>\u95ee\u9898\u4e00&#xff1a;<\/p>\n<p>MRR\u4e3b\u8981\u7528\u4e8e\u4f18\u5316\u901a\u8fc7\u4e8c\u7ea7\u7d22\u5f15\u8fdb\u884c\u8303\u56f4\u67e5\u8be2\u6216 IN \u67e5\u8be2\u540e\u56de\u8868&#xff08;lookup&#xff09;\u4e3b\u952e\u6570\u636e\u7684\u8fc7\u7a0b\u3002<\/p>\n<p>\u95ee\u9898\u4e8c&#xff1a; \u751f\u6548\u573a\u666f<\/p>\n<p>MRR \u5728\u4ee5\u4e0b\u6761\u4ef6\u540c\u65f6\u6ee1\u8db3\u65f6\u624d\u4f1a\u88ab\u4f18\u5316\u5668\u8003\u8651\u4f7f\u7528&#xff1a;<\/p>\n<ul>\n<li>\u67e5\u8be2\u4f7f\u7528\u4e86\u975e\u805a\u7c07\u7d22\u5f15&#xff08;Secondary Index&#xff09;&#xff1b;<\/li>\n<li>\u8be5\u7d22\u5f15\u4e0d\u80fd\u8986\u76d6\u67e5\u8be2\u6240\u9700\u7684\u6240\u6709\u5b57\u6bb5&#xff08;\u5373\u9700\u8981\u56de\u8868&#xff09;&#xff1b;<\/li>\n<li>\u67e5\u8be2\u6761\u4ef6\u6d89\u53ca\u591a\u4e2a\u79bb\u6563\u503c\u6216\u8303\u56f4&#xff0c;\u4f8b\u5982 WHERE idx_col IN (1, 5, 100) \u6216 BETWEEN&#xff1b;<\/li>\n<li>\u4f18\u5316\u5668\u8ba4\u4e3a\u542f\u7528 MRR \u80fd\u964d\u4f4e\u6267\u884c\u6210\u672c&#xff08;\u53ef\u901a\u8fc7 optimizer_switch&#061;&#039;mrr&#061;on,mrr_cost_based&#061;off&#039; \u5f3a\u5236\u5f00\u542f&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u95ee\u98983. \u5de5\u4f5c\u539f\u7406\u4e0e\u6027\u80fd\u63d0\u5347\u539f\u56e0<\/p>\n<p>\u5728\u6ca1\u6709 MRR \u65f6&#xff0c;MySQL \u4f1a\u9010\u884c\u901a\u8fc7\u4e8c\u7ea7\u7d22\u5f15\u62ff\u5230\u4e3b\u952e\u540e\u7acb\u5373\u56de\u8868&#xff0c;\u5bfc\u81f4\u5927\u91cf\u968f\u673a I\/O\u3002<\/p>\n<p>\u800c MRR \u7684\u505a\u6cd5\u662f&#xff1a;<\/p>\n<ul>\n<li>\u5148\u5c06\u6240\u6709\u9700\u8981\u56de\u8868\u7684\u4e3b\u952e\u503c\u6536\u96c6\u5230\u4e00\u4e2a\u7f13\u51b2\u533a&#xff08;read_rnd_buffer&#xff09;&#xff1b;<\/li>\n<li>\u5bf9\u8fd9\u4e9b\u4e3b\u952e\u6392\u5e8f&#xff1b;<\/li>\n<li>\u7136\u540e\u6309\u4e3b\u952e\u987a\u5e8f\u6279\u91cf\u8bbf\u95ee\u805a\u7c07\u7d22\u5f15<\/li>\n<\/ul>\n<p>\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f&#xff1a;<\/p>\n<ul>\n<li>\u5c06\u539f\u672c\u7684\u968f\u673a I\/O \u8f6c\u5316\u4e3a\u8fd1\u4f3c\u987a\u5e8f I\/O&#xff0c;\u5927\u5e45\u51cf\u5c11\u78c1\u76d8\u5bfb\u9053\u65f6\u95f4&#xff08;\u5c24\u5176\u5bf9 HDD \u6548\u679c\u663e\u8457&#xff09;&#xff1b;<\/li>\n<li>\u63d0\u5347 InnoDB Buffer Pool \u7684\u7a7a\u95f4\u5c40\u90e8\u6027&#xff0c;\u63d0\u9ad8\u7f13\u5b58\u547d\u4e2d\u7387&#xff1b;<\/li>\n<li>\u66f4\u5bb9\u6613\u89e6\u53d1 InnoDB \u7684\u7ebf\u6027\u9884\u8bfb&#xff08;linear read-ahead&#xff09;&#xff0c;\u8fdb\u4e00\u6b65\u51cf\u5c11\u7269\u7406 I\/O\u3002<\/li>\n<\/ul>\n<h3>\u95ee\u9898 2&#xff1a;<\/h3>\n<p>MRR \u548c\u8986\u76d6\u7d22\u5f15&#xff08;Covering Index&#xff09;\u90fd\u80fd\u4f18\u5316\u67e5\u8be2\u6027\u80fd&#xff0c;\u5b83\u4eec\u6709\u4ec0\u4e48\u533a\u522b&#xff1f;\u5728\u4ec0\u4e48\u60c5\u51b5\u4e0b\u5e94\u8be5\u4f18\u5148\u8003\u8651\u54ea\u4e00\u79cd&#xff1f;<\/p>\n<p>\u8003\u5bdf\u70b9&#xff1a;\u5bf9\u4e0d\u540c\u4f18\u5316\u6280\u672f\u7684\u5bf9\u6bd4\u5206\u6790\u80fd\u529b&#xff0c;\u4ee5\u53ca\u5b9e\u9645\u8c03\u4f18\u4e2d\u7684\u6743\u8861\u601d\u7ef4\u3002<\/p>\n<p>\u95ee\u98981. \u6838\u5fc3\u533a\u522b<\/p>\n<table>\n<tr>\u7ef4\u5ea6MRR&#xff08;Multi-Range Read&#xff09;\u8986\u76d6\u7d22\u5f15&#xff08;Covering Index&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u76ee\u6807<\/td>\n<td>\u4f18\u5316\u5fc5\u987b\u56de\u8868\u65f6\u7684 I\/O \u6548\u7387<\/td>\n<td>\u907f\u514d\u56de\u8868&#xff0c;\u5b8c\u5168\u4ece\u7d22\u5f15\u4e2d\u83b7\u53d6\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>\u662f\u5426\u9700\u8981\u8bbf\u95ee\u805a\u7c07\u7d22\u5f15<\/td>\n<td>\u662f&#xff08;\u4f46\u4ee5\u66f4\u9ad8\u6548\u65b9\u5f0f&#xff09;<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>I\/O \u7c7b\u578b<\/td>\n<td>\u5c06\u968f\u673a I\/O \u8f6c\u4e3a\u987a\u5e8f I\/O<\/td>\n<td>\u5b8c\u5168\u6d88\u9664\u56de\u8868 I\/O<\/td>\n<\/tr>\n<tr>\n<td>\u5b58\u50a8\u5f00\u9500<\/td>\n<td>\u65e0\u989d\u5916\u7d22\u5f15\u5f00\u9500<\/td>\n<td>\u9700\u8981\u521b\u5efa\u5305\u542b\u66f4\u591a\u5217\u7684\u5bbd\u7d22\u5f15&#xff0c;\u5360\u7528\u66f4\u591a\u78c1\u76d8\u548c\u5185\u5b58<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u67e5\u8be2<\/td>\n<td>SELECT * \u6216\u542b\u975e\u7d22\u5f15\u5217\u7684\u67e5\u8be2<\/td>\n<td>SELECT \u5217\u5168\u90e8\u5305\u542b\u5728\u7d22\u5f15\u4e2d\u7684\u67e5\u8be2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u95ee\u98982. \u4f18\u5148\u7ea7\u539f\u5219&#xff1a;<\/p>\n<p>\u8986\u76d6\u7d22\u5f15 &gt; MRR<\/p>\n<ul>\n<li>\n<p>\u9996\u9009\u8986\u76d6\u7d22\u5f15&#xff1a;<\/p>\n<p>\u5982\u679c\u4e1a\u52a1\u67e5\u8be2\u7684\u5b57\u6bb5\u96c6\u5408\u56fa\u5b9a\u4e14\u4e0d\u5927&#xff0c;\u5e94\u4f18\u5148\u8bbe\u8ba1\u8986\u76d6\u7d22\u5f15\u3002\u56e0\u4e3a\u4e0d\u56de\u8868\u662f\u6700\u5f7b\u5e95\u7684\u4f18\u5316&#xff0c;\u65e0\u8bba\u5e95\u5c42\u662f HDD \u8fd8\u662f SSD \u90fd\u6709\u663e\u8457\u6536\u76ca&#xff0c;\u4e14 CPU \u5f00\u9500\u66f4\u4f4e\u3002<\/p>\n<p>\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token comment\">&#8212; \u82e5\u7ecf\u5e38\u67e5 (user_id, status)&#xff0c;\u53ef\u5efa\u8054\u5408\u7d22\u5f15<\/span><br \/>\n<span class=\"token keyword\">CREATE<\/span> <span class=\"token keyword\">INDEX<\/span> idx_user_status <span class=\"token keyword\">ON<\/span> orders<span class=\"token punctuation\">(<\/span>user_id<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">status<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">SELECT<\/span> user_id<span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">status<\/span> <span class=\"token keyword\">FROM<\/span> orders <span class=\"token keyword\">WHERE<\/span> user_id <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">123<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">&#8212; \u8986\u76d6\u7d22\u5f15&#xff0c;\u65e0\u9700\u56de\u8868<\/span><\/p>\n<\/li>\n<li>\n<p>\u6b21\u9009 MRR&#xff1a;<\/p>\n<p>\u5f53\u65e0\u6cd5\u4f7f\u7528\u8986\u76d6\u7d22\u5f15\u65f6&#xff08;\u5982 SELECT *\u3001\u67e5\u8be2\u5b57\u6bb5\u592a\u591a\u3001\u6216\u5b57\u6bb5\u542b\u5927\u6587\u672c&#xff09;&#xff0c;MRR \u6210\u4e3a\u91cd\u8981\u7684\u515c\u5e95\u4f18\u5316\u624b\u6bb5&#xff0c;\u5c24\u5176\u5728 HDD \u73af\u5883\u6216\u5927\u6279\u91cf\u56de\u8868\u573a\u666f\u4e0b\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u95ee\u98983. \u5b9e\u9645\u8c03\u4f18\u5efa\u8bae<\/p>\n<ul>\n<li>\u8986\u76d6\u7d22\u5f15\u867d\u597d&#xff0c;\u4f46\u4e0d\u662f\u4e07\u80fd\u7684&#xff1a;\u7d22\u5f15\u8fc7\u5bbd\u4f1a\u62d6\u6162\u5199\u5165\u6027\u80fd\u3001\u589e\u5927 Buffer Pool \u538b\u529b&#xff1b;<\/li>\n<li>MRR \u662f\u6267\u884c\u5c42\u7684\u8fd0\u884c\u65f6\u4f18\u5316&#xff0c;\u65e0\u9700\u6539\u8868\u7ed3\u6784&#xff0c;\u4f46\u4f9d\u8d56\u67e5\u8be2\u6a21\u5f0f\u548c\u786c\u4ef6\u7279\u6027&#xff1b;<\/li>\n<li>\u6700\u4f73\u5b9e\u8df5&#xff1a;\u5148\u5c1d\u8bd5\u8986\u76d6\u7d22\u5f15&#xff0c;\u82e5\u4e0d\u53ef\u884c\u518d\u786e\u4fdd MRR \u53ef\u7528\u5e76\u5408\u7406\u914d\u7f6e read_rnd_buffer_size\u3002<\/li>\n<\/ul>\n<p>\u603b\u7ed3\u4e00\u53e5\u8bdd<br \/>\n\u8986\u76d6\u7d22\u5f15\u662f\u4ece\u201c\u8981\u4e0d\u8981\u56de\u8868\u201d\u4e0a\u505a\u6839\u672c\u6027\u4f18\u5316&#xff0c;MRR \u662f\u5728\u201c\u4e0d\u5f97\u4e0d\u56de\u8868\u201d\u7684\u524d\u63d0\u4e0b\u505a\u6548\u7387\u4f18\u5316\u2014\u2014\u524d\u8005\u4f18\u5148\u7ea7\u66f4\u9ad8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4ec0\u4e48\u662f MRR&#xff08;Multi-Range Read&#xff09;&#xff1f;<br \/>\nMRR&#xff08;Multi-Range Read&#xff09; \u662f MySQL \u4ece 5.6 \u7248\u672c\u5f00\u59cb\u5f15\u5165\u7684\u4e00\u79cd\u4f18\u5316\u6280\u672f&#xff0c;\u4e3b\u8981\u7528\u4e8e\u4f18\u5316 \u57fa\u4e8e\u975e\u805a\u7c07\u7d22\u5f15&#xff08;Secondary Index&#xff09;\u8fdb\u884c\u8303\u56f4\u67e5\u8be2\u6216 IN \u67e5\u8be2\u540e\u56de\u8868&#xff08;lookup&#xff09;\u4e3b\u952e\u6570\u636e \u7684 I\/O \u6548\u7387\u3002<br \/>\n\u5728\u6ca1\u6709 MRR \u7684\u60c5\u51b5\u4e0b&#xff0c;M<\/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":[114,100,44],"topic":[],"class_list":["post-59331","post","type-post","status-publish","format-standard","hentry","category-server","tag-mysql","tag-100","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u5c0f\u6280\u5de727]MRR \u5982\u4f55\u91cd\u5851\u56de\u8868 I\/O\uff1a\u4ece\u968f\u673a\u8bbf\u95ee\u5230\u987a\u5e8f\u8bfb\u53d6\u7684\u6027\u80fd\u8dc3\u8fc1 - \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\/59331.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u5c0f\u6280\u5de727]MRR \u5982\u4f55\u91cd\u5851\u56de\u8868 I\/O\uff1a\u4ece\u968f\u673a\u8bbf\u95ee\u5230\u987a\u5e8f\u8bfb\u53d6\u7684\u6027\u80fd\u8dc3\u8fc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u4ec0\u4e48\u662f MRR&#xff08;Multi-Range Read&#xff09;&#xff1f; MRR&#xff08;Multi-Range Read&#xff09; \u662f MySQL \u4ece 5.6 \u7248\u672c\u5f00\u59cb\u5f15\u5165\u7684\u4e00\u79cd\u4f18\u5316\u6280\u672f&#xff0c;\u4e3b\u8981\u7528\u4e8e\u4f18\u5316 \u57fa\u4e8e\u975e\u805a\u7c07\u7d22\u5f15&#xff08;Secondary Index&#xff09;\u8fdb\u884c\u8303\u56f4\u67e5\u8be2\u6216 IN \u67e5\u8be2\u540e\u56de\u8868&#xff08;lookup&#xff09;\u4e3b\u952e\u6570\u636e \u7684 I\/O \u6548\u7387\u3002 \u5728\u6ca1\u6709 MRR \u7684\u60c5\u51b5\u4e0b&#xff0c;M\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/59331.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-13T10:09:01+00:00\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59331.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/59331.html\",\"name\":\"[\u5c0f\u6280\u5de727]MRR \u5982\u4f55\u91cd\u5851\u56de\u8868 I\/O\uff1a\u4ece\u968f\u673a\u8bbf\u95ee\u5230\u987a\u5e8f\u8bfb\u53d6\u7684\u6027\u80fd\u8dc3\u8fc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-13T10:09:01+00:00\",\"dateModified\":\"2026-01-13T10:09:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/59331.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/59331.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/59331.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\u5c0f\u6280\u5de727]MRR \u5982\u4f55\u91cd\u5851\u56de\u8868 I\/O\uff1a\u4ece\u968f\u673a\u8bbf\u95ee\u5230\u987a\u5e8f\u8bfb\u53d6\u7684\u6027\u80fd\u8dc3\u8fc1\"}]},{\"@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":"[\u5c0f\u6280\u5de727]MRR \u5982\u4f55\u91cd\u5851\u56de\u8868 I\/O\uff1a\u4ece\u968f\u673a\u8bbf\u95ee\u5230\u987a\u5e8f\u8bfb\u53d6\u7684\u6027\u80fd\u8dc3\u8fc1 - \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\/59331.html","og_locale":"zh_CN","og_type":"article","og_title":"[\u5c0f\u6280\u5de727]MRR \u5982\u4f55\u91cd\u5851\u56de\u8868 I\/O\uff1a\u4ece\u968f\u673a\u8bbf\u95ee\u5230\u987a\u5e8f\u8bfb\u53d6\u7684\u6027\u80fd\u8dc3\u8fc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u4ec0\u4e48\u662f MRR&#xff08;Multi-Range Read&#xff09;&#xff1f; MRR&#xff08;Multi-Range Read&#xff09; \u662f MySQL \u4ece 5.6 \u7248\u672c\u5f00\u59cb\u5f15\u5165\u7684\u4e00\u79cd\u4f18\u5316\u6280\u672f&#xff0c;\u4e3b\u8981\u7528\u4e8e\u4f18\u5316 \u57fa\u4e8e\u975e\u805a\u7c07\u7d22\u5f15&#xff08;Secondary Index&#xff09;\u8fdb\u884c\u8303\u56f4\u67e5\u8be2\u6216 IN \u67e5\u8be2\u540e\u56de\u8868&#xff08;lookup&#xff09;\u4e3b\u952e\u6570\u636e \u7684 I\/O \u6548\u7387\u3002 \u5728\u6ca1\u6709 MRR \u7684\u60c5\u51b5\u4e0b&#xff0c;M","og_url":"https:\/\/www.wsisp.com\/helps\/59331.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-13T10:09:01+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/59331.html","url":"https:\/\/www.wsisp.com\/helps\/59331.html","name":"[\u5c0f\u6280\u5de727]MRR \u5982\u4f55\u91cd\u5851\u56de\u8868 I\/O\uff1a\u4ece\u968f\u673a\u8bbf\u95ee\u5230\u987a\u5e8f\u8bfb\u53d6\u7684\u6027\u80fd\u8dc3\u8fc1 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-13T10:09:01+00:00","dateModified":"2026-01-13T10:09:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/59331.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/59331.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/59331.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"[\u5c0f\u6280\u5de727]MRR \u5982\u4f55\u91cd\u5851\u56de\u8868 I\/O\uff1a\u4ece\u968f\u673a\u8bbf\u95ee\u5230\u987a\u5e8f\u8bfb\u53d6\u7684\u6027\u80fd\u8dc3\u8fc1"}]},{"@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\/59331","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=59331"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/59331\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=59331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=59331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=59331"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=59331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}