{"id":10021004,"date":"2025-09-16T22:57:08","date_gmt":"2025-09-16T14:57:08","guid":{"rendered":"https:\/\/itmax.cn\/?p=10021004"},"modified":"2025-09-16T22:57:08","modified_gmt":"2025-09-16T14:57:08","slug":"mysql%e5%8d%95%e8%a1%a8%e4%b8%ba%e4%bd%95%e5%88%ab%e8%b6%852000%e4%b8%87%e8%a1%8c%ef%bc%9f%e6%8f%ad%e7%a7%98b%e6%a0%91%e4%b8%8e16kb%e9%a1%b5%e7%9a%84%e7%94%9f%e6%ad%bb%e5%8d%9a%e5%bc%88%ef%bd%9c","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10021004","title":{"rendered":"MySQL\u5355\u8868\u4e3a\u4f55\u522b\u8d852000\u4e07\u884c\uff1f\u63ed\u79d8B+\u6811\u4e0e16KB\u9875\u7684\u751f\u6b7b\u535a\u5f08\uff5c\u5f97\u7269\u6280\u672f"},"content":{"rendered":"<h2>\u4e00\u3001\u524d \u8a00<\/h2>\n<p>\u672c\u6587\u6838\u5fc3\u4ecb\u7ecd\uff0c\u4e3a\u4f55\u4e1a\u754c\u4f1a\u6709\u8fd9\u6837\u7684\u8bf4\u6cd5\uff1f\u2014\u2014 \u201cMySQL\u5355\u8868\u5b58\u50a8\u6570\u636e\u91cf\u6700\u597d\u522b\u8d85\u8fc7\u5343\u4e07\u7ea7\u522b\u201d<\/p>\n<p>\u5f53\u7136\u8fd9\u91cc\u662f\u6709\u524d\u63d0\u6761\u4ef6\u7684\uff0c\u4e5f\u662f\u6211\u4eec\u6700\u5e38\u4f7f\u7528\u5230\u7684\uff1a<\/p>\n<ul>\n<li>InnoDB\u5b58\u50a8\u5f15\u64ce\uff1b<\/li>\n<li>\u4f7f\u7528\u7684\u662f\u9ed8\u8ba4\u7d22\u5f15\u6570\u636e\u7ed3\u6784\u2014\u2014B+\u6811;<\/li>\n<li>\u6b63\u5e38\u666e\u901a\u8868\u6570\u636e\uff08\u5217\u6570\u91cf\u63a7\u5236\u5728\u51e0\u4e2a\u5230\u4e00\u4e8c\u5341\u4e2a\uff0c\u666e\u901a\u5b57\u6bb5\u7c7b\u578b\u53ca\u957f\u5ea6\uff09\u3002<\/li>\n<\/ul>\n<p>\u63a5\u4e0b\u6765\u54b1\u4eec\u5c31\u63a2\u7a76\u4e00\u4e0b\u539f\u56e0\uff0c\u9010\u6b65\u63ed\u5f00\u7b54\u6848\u3002<\/p>\n<h2>\u4e8c\u3001MySQL\u662f\u5982\u4f55\u5b58\u50a8\u6570\u636e\u7684\uff1f<\/h2>\n<p><strong>\u6838\u5fc3\u7ed3\u6784<\/strong>\uff1aB+\u6811 + 16KB\u6570\u636e\u9875<\/p>\n<p>\u8fd9\u91cc\u5982\u4e0b\uff0c\u5efa\u4e00\u5f20\u666e\u901a\u8868user\uff1a<\/p>\n<pre><code>CREATE\u00a0TABLE\u00a0`user` (\n\u00a0 `id`\u00a0int(10) unsigned\u00a0NOT\u00a0NULL\u00a0AUTO_INCREMENT COMMENT\u00a0'\u4e3b\u952e',\n\u00a0 `name`\u00a0varchar(100)\u00a0NOT\u00a0NULL\u00a0DEFAULT\u00a0''\u00a0COMMENT\u00a0'\u540d\u5b57',\n\u00a0 `age`\u00a0int(11)\u00a0NOT\u00a0NULL\u00a0DEFAULT\u00a0'0'\u00a0COMMENT\u00a0'\u5e74\u9f84',\n\u00a0\u00a0PRIMARY\u00a0KEY (`id`),\n\u00a0 KEY `idx_age` (`age`)\n) ENGINE=InnoDB AUTO_INCREMENT=1\u00a0DEFAULT\u00a0CHARSET=utf8;\n<\/code><\/pre>\n<p><strong>\u6570\u636e\u9875\uff08Page\uff09<\/strong><\/p>\n<p><strong>\u4ecb\u7ecd<\/strong><\/p>\n<p>InnoDB\u5b58\u50a8\u7684\u6700\u5c0f\u5355\u4f4d\uff0c\u56fa\u5b9a\u4e3a16KB \u3002\u6bcf\u9875\u5b58\u50a8\u8868\u6570\u636e\uff08\u884c\u8bb0\u5f55\uff09\u3001\u7d22\u5f15\u3001\u5143\u4fe1\u606f\u7b49\u3002\u6570\u636e\u52a0\u8f7d\u5230\u5185\u5b58\u65f6\u4ee5\u9875\u4e3a\u5355\u4f4d\uff0c\u51cf\u5c11\u78c1\u76d8I\/O\u6b21\u6570\u3002<\/p>\n<p><strong>\u9875\u7684\u7ed3\u6784<\/strong><\/p>\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u8fd9\u4e48\u4e00\u5f20user\u6570\u636e\u8868\u3002\u5176\u4e2did\u662f<strong>\u552f\u4e00\u4e3b\u952e<\/strong>\u3002\u8fd9\u770b\u8d77\u6765\u7684\u4e00\u884c\u884c\u6570\u636e\uff0c\u4e3a\u4e86\u65b9\u4fbf\uff0c\u6211\u4eec\u540e\u9762\u5c31\u53eb\u5b83\u4eec<strong>record<\/strong>\u5427\u3002\u8fd9\u5f20\u8868\u770b\u8d77\u6765\u5c31\u8ddf\u4e2aexcel\u8868\u683c\u4e00\u6837\u3002excel\u7684\u6570\u636e\u5728\u786c\u76d8\u4e0a\u662f\u4e00\u4e2axx.excel\u7684\u6587\u4ef6\u3002\u800c\u4e0a\u9762user\u8868\u6570\u636e\uff0c\u5728\u786c\u76d8\u4e0a\u5176\u5b9e\u4e5f\u662f\u7c7b\u4f3c\uff0c\u653e\u5728\u4e86user.<strong>ibd<\/strong>\u6587\u4ef6\u4e0b\u3002\u542b\u4e49\u662fuser\u8868\u7684innodb data\u6587\u4ef6\uff0c\u53c8\u53eb<strong>\u8868\u7a7a\u95f4<\/strong>\u3002\u867d\u7136\u5728\u6570\u636e\u8868\u91cc\uff0c\u5b83\u4eec\u770b\u8d77\u6765\u662f\u6328\u5728\u4e00\u8d77\u7684\u3002\u4f46\u5b9e\u9645\u4e0a\u5728user.ibd\u91cc\u4ed6\u4eec\u88ab\u5206\u6210\u5f88\u591a\u5c0f\u4efd\u7684<strong>\u6570\u636e\u9875<\/strong>\uff0c\u6bcf\u4efd\u5927\u5c0f16k\u3002\u7c7b\u4f3c\u4e8e\u4e0b\u9762\u8fd9\u6837\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"723\" height=\"311\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmuII\" alt=\"image.png\" title=\"image.png\"><\/p>\n<p>ibd\u6587\u4ef6\u5185\u90e8\u6709\u5927\u91cf\u7684\u9875\uff0c\u6211\u4eec\u628a\u89c6\u89d2\u805a\u7126\u4e00\u4e0b\uff0c\u653e\u5230\u9875\u4e0a\u9762\u3002\u6574\u4e2a\u987516k\uff0c\u4e0d\u5927\uff0c\u4f46record\u8fd9\u4e48\u591a\uff0c\u4e00\u9875\u80af\u5b9a\u653e\u4e0d\u4e0b\uff0c\u6240\u4ee5\u4f1a\u5206\u5f00\u653e\u5230\u5f88\u591a\u9875\u91cc\u3002\u5e76\u4e14\u8fd916k\uff0c\u4e5f\u4e0d\u53ef\u80fd\u5168\u7528\u6765\u653erecord\u5bf9\u5427\u3002\u56e0\u4e3arecord\u4eec\u88ab\u5206\u6210\u597d\u591a\u4efd\uff0c\u653e\u5230\u597d\u591a\u9875\u91cc\u4e86\uff0c\u4e3a\u4e86\u552f\u4e00\u6807\u8bc6\u5177\u4f53\u662f\u54ea\u4e00\u9875\uff0c\u90a3\u5c31\u9700\u8981\u5f15\u5165<strong>\u9875\u53f7<\/strong>\uff08\u5176\u5b9e\u662f\u4e00\u4e2a\u8868\u7a7a\u95f4\u7684\u5730\u5740\u504f\u79fb\u91cf\uff09\u3002\u540c\u65f6\u4e3a\u4e86\u628a\u8fd9\u4e9b\u6570\u636e\u9875\u7ed9\u5173\u8054\u8d77\u6765\uff0c\u4e8e\u662f\u5f15\u5165\u4e86<strong>\u524d\u540e\u6307\u9488<\/strong>\uff0c\u7528\u4e8e\u6307\u5411\u524d\u540e\u7684\u9875\u3002\u8fd9\u4e9b\u90fd\u88ab\u52a0\u5230\u4e86<strong>\u9875\u5934<\/strong>\u91cc\u3002\u9875\u662f\u9700\u8981\u8bfb\u5199\u7684\uff0c16k\u8bf4\u5c0f\u4e5f\u4e0d\u5c0f\uff0c\u5199\u4e00\u534a\u7535\u6e90\u7ebf\u88ab\u62d4\u4e86\u4e5f\u662f\u6709\u53ef\u80fd\u53d1\u751f\u7684\uff0c\u6240\u4ee5\u4e3a\u4e86\u4fdd\u8bc1\u6570\u636e\u9875\u7684\u6b63\u786e\u6027\uff0c\u8fd8\u5f15\u5165\u4e86\u6821\u9a8c\u7801\u3002\u8fd9\u4e2a\u88ab\u52a0\u5230\u4e86<strong>\u9875\u5c3e<\/strong>\u3002\u90a3\u5269\u4e0b\u7684\u7a7a\u95f4\uff0c\u624d\u662f\u7528\u6765\u653e\u6211\u4eec\u7684record\u7684\u3002\u800crecord\u5982\u679c\u884c\u6570\u7279\u522b\u591a\u7684\u8bdd\uff0c\u8fdb\u5165\u5230\u9875\u5185\u65f6\u6328\u4e2a\u904d\u5386\uff0c\u6548\u7387\u4e5f\u4e0d\u592a\u884c\uff0c\u6240\u4ee5\u4e3a\u8fd9\u4e9b\u6570\u636e\u751f\u6210\u4e86\u4e00\u4e2a<strong>\u9875\u76ee\u5f55<\/strong>\uff0c\u5177\u4f53\u5b9e\u73b0\u7ec6\u8282\u4e0d\u91cd\u8981\u3002\u53ea\u9700\u8981\u77e5\u9053\uff0c\u5b83\u53ef\u4ee5\u901a\u8fc7<strong>\u4e8c\u5206\u67e5\u627e<\/strong>\u7684\u65b9\u5f0f\u5c06\u67e5\u627e\u6548\u7387<strong>\u4eceO(n) \u53d8\u6210O(lgn)<\/strong> \u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"527\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmuIJ\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u00a0<\/p>\n<p><strong>\u4ece\u9875\u5230\u7d22\u5f15\u2014B+\u6811\u7d22\u5f15<\/strong><\/p>\n<p>\u5982\u679c\u60f3\u67e5\u4e00\u6761record\uff0c\u6211\u4eec\u53ef\u4ee5\u628a\u8868\u7a7a\u95f4\u91cc\u6bcf\u4e00\u9875\u90fd\u635e\u51fa\u6765\uff08\u5168\u8868\u626b\u63cf\uff09\uff0c\u518d\u628a\u91cc\u9762\u7684record\u635e\u51fa\u6765\u6328\u4e2a\u5224\u65ad\u662f\u4e0d\u662f\u6211\u4eec\u8981\u627e\u7684\u3002\u884c\u6570\u91cf\u5c0f\u7684\u65f6\u5019\uff0c\u8fd9\u4e48\u64cd\u4f5c\u4e5f\u6ca1\u5565\u95ee\u9898\u3002<strong>\u884c\u6570\u91cf\u5927\u4e86\uff0c\u6027\u80fd\u5c31\u6162\u4e86<\/strong>\uff0c\u4e8e\u662f\u4e3a\u4e86\u52a0\u901f\u641c\u7d22\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u6bcf\u4e2a\u6570\u636e\u9875\u91cc\u9009\u51fa<strong>\u4e3b\u952eid\u6700\u5c0f<\/strong>\u7684record\uff0c\u800c\u4e14\u53ea\u9700\u8981\u5b83\u4eec\u7684<strong>\u4e3b\u952eid\u548c\u6240\u5728\u9875\u7684\u9875\u53f7<\/strong>\u3002\u7ec4\u6210<strong>\u65b0\u7684record<\/strong>\uff0c\u653e\u5165\u5230\u4e00\u4e2a\u65b0\u751f\u6210\u7684\u4e00\u4e2a\u6570\u636e\u9875\u4e2d\uff0c\u8fd9\u4e2a<strong>\u65b0\u6570\u636e\u9875\u8ddf\u4e4b\u524d\u7684\u9875\u7ed3\u6784\u6ca1\u5565\u533a\u522b\uff0c\u800c\u4e14\u5927\u5c0f\u8fd8\u662f16k<\/strong>\u3002\u4f46\u4e3a\u4e86\u8ddf\u4e4b\u524d\u7684\u6570\u636e\u9875\u8fdb\u884c\u533a\u5206\u3002\u6570\u636e\u9875\u91cc\u52a0\u5165\u4e86<strong>\u9875\u5c42\u7ea7\uff08page level\uff09<\/strong> \u7684\u4fe1\u606f\uff0c\u4ece0\u5f00\u59cb\u5f80\u4e0a\u7b97\u3002\u4e8e\u662f\u9875\u4e0e\u9875\u4e4b\u95f4\u5c31\u6709\u4e86<strong>\u4e0a\u4e0b\u5c42\u7ea7<\/strong>\u7684\u6982\u5ff5\uff0c\u5c31\u50cf\u4e0b\u9762\u8fd9\u6837\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"470\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmuIL\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u7a81\u7136\u9875\u8ddf\u9875\u4e4b\u95f4\u770b\u8d77\u6765\u5c31\u50cf\u662f\u4e00\u68f5\u5012\u8fc7\u6765\u7684\u6811\u4e86\u3002\u4e5f\u5c31\u662f\u6211\u4eec\u5e38\u8bf4\u7684<strong>B+<\/strong> \u6811\u7d22\u5f15\u3002\u6700\u4e0b\u9762\u90a3\u4e00\u5c42\uff0c<strong>page level \u4e3a0<\/strong>\uff0c\u4e5f\u5c31\u662f\u6240\u8c13\u7684<strong>\u53f6\u5b50\u7ed3\u70b9<\/strong>\uff0c\u5176\u4f59\u90fd\u53eb<strong>\u975e\u53f6\u5b50\u7ed3\u70b9<\/strong>\u3002\u4e0a\u9762\u5c55\u793a\u7684\u662f\u4e24\u5c42\u7684\u6811\uff0c\u5982\u679c\u6570\u636e\u53d8\u591a\u4e86\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u518d\u901a\u8fc7\u7c7b\u4f3c\u7684\u65b9\u6cd5\uff0c\u518d\u5f80\u4e0a\u6784\u5efa\u4e00\u5c42\u3002\u5c31\u6210\u4e86\u4e09\u5c42\u7684\u6811\u3002<\/p>\n<ul>\n<li><strong>\u805a\u7c07\u7d22\u5f15<\/strong>\uff1a\u6570\u636e\u6309\u4e3b\u952e\u7ec4\u7ec7\u6210\u4e00\u68f5B+\u6811\u3002\u53f6\u5b50\u8282\u70b9\u5b58\u50a8\u5b8c\u6574\u884c\u6570\u636e \uff0c\u975e\u53f6\u5b50\u8282\u70b9\u5b58\u50a8\u4e3b\u952e\u503c+\u6307\u5411\u5b50\u9875\u7684\u6307\u9488\uff08\u7c7b\u4f3c\u76ee\u5f55\uff09\u3002<\/li>\n<li><strong>\u4e8c\u7ea7\u7d22\u5f15<\/strong>\uff1a\u53f6\u5b50\u8282\u70b9\u5b58\u50a8\u4e3b\u952e\u503c\uff0c\u67e5\u8be2\u65f6\u9700\u56de\u8868\uff08\u6839\u636e\u4e3b\u952e\u56de\u805a\u7c07\u7d22\u5f15\u67e5\u6570\u636e\uff09\u3002<\/li>\n<li><strong>\u884c\u683c\u5f0f<\/strong>\uff1a\u5982COMPACT\u683c\u5f0f\uff0c\u884c\u6570\u636e\u5305\u542b\u4e8b\u52a1ID\u3001\u56de\u6eda\u6307\u9488\u3001\u5217\u503c\u7b49\u4fe1\u606f\u3002<strong>\u884c\u5927\u5c0f\u5f71\u54cd\u5355\u9875\u5b58\u50a8\u7684\u884c\u6570<\/strong>\u3002<\/li>\n<\/ul>\n<p><strong>\u5b58\u5165\u6570\u636e\u5982\u4e0b<\/strong><\/p>\n<p>\u6bd4\u5982\u8868\u6570\u636e\u5df2\u5b58\u5728id\u4e3a1-10\u7684\u6570\u636e\u5b58\u50a8\uff0c\u7b80\u5355\u6bd4\u65b9\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"357\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmuIM\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u7136\u540e\u9700\u8981\u63d2\u5165id=11\u7684\u6570\u636e\uff1a<\/p>\n<ul>\n<li>\u52a0\u8f7d1\u53f7\u6570\u636e\u9875\u5165\u5185\u5b58\uff0c\u5206\u6790\u5224\u5b9a\uff1b<\/li>\n<li>id=11\u7684\u6570\u636e\u5927\u4e8eid=10\uff0c\u90a3\u4e48\u9501\u5b9a\u9875\u53f75\uff0c\u5224\u5b9a5\u53f7\u9875\u662f\u5426\u8fd8\u53ef\u4ee5\u5b58\u4e0b\u6570\u636e11\uff1b<\/li>\n<li>\u53ef\u4ee5\u5b58\u4e0b\uff0c\u5c06id=11\u7684\u6570\u636e\u5199\u5165\u52305\u53f7\u9875\u4e2d\u3002<\/li>\n<\/ul>\n<p><img decoding=\"async\" width=\"723\" height=\"353\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmuIN\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u5173\u952e\u539f\u7406\u603b\u7ed3<\/strong><\/p>\n<p>\u6240\u6709\u6570\u636e\u901a\u8fc7B+\u6811\u6709\u5e8f\u7ec4\u7ec7\uff0c\u6570\u636e\u5b58\u50a8\u5728\u6570\u636e\u9875\u4e0a\uff0c\u9875\u4e0e\u9875\u4e4b\u95f4\u4ee5\u53cc\u5411\u94fe\u8868\u8fde\u63a5\uff0c\u975e\u53f6\u5b50\u8282\u70b9\u63d0\u4f9b\u5feb\u901f\u5b9a\u4f4d\u8def\u5f84\uff0c\u53f6\u5b50\u8282\u70b9\u5b58\u50a8\u5b9e\u9645\u7684\u6570\u636e\u3002\u00a0<\/p>\n<h2>\u4e09\u3001MySQL\u662f\u5982\u4f55\u67e5\u8be2\u5230\u6570\u636e\u7684\uff1f<\/h2>\n<p>\u4e0a\u9762\u6211\u4eec\u5df2\u7ecf\u4ecb\u7ecd\u4e86MySQL\u4e2d\u4f7f\u7528\u9875\u5b58\u50a8\u6570\u636e\uff0c\u4ee5\u53caB+\u6811\u7d22\u5f15\u6570\u636e\u7684\u7ed3\u6784\uff0c\u90a3\u73b0\u5728\u6211\u4eec\u5c31\u53ef\u4ee5\u901a\u8fc7\u8fd9\u6837\u4e00\u68f5B+\u6811\u52a0\u901f\u67e5\u8be2\u3002<\/p>\n<p>**\u4e3e\u4e2a\u4f8b\u5b50\uff1aselect ***<\/p>\n<p><strong>from table where id = 5<\/strong><\/p>\n<p>\u6bd4\u65b9\u8bf4\u6211\u4eec\u60f3\u8981\u67e5\u627e\u884c\u6570\u636e5\u3002\u4f1a\u5148\u4ece\u9876\u5c42\u9875\u7684record\u4eec\u5165\u624b\u3002<strong>record\u91cc\u5305\u542b\u4e86\u4e3b\u952eid\u548c\u9875\u53f7\uff08\u9875\u5730\u5740\uff09<\/strong> \u3002<\/p>\n<p>\u5982\u4e0b\u56fe\u6240\u793a\uff0c\u5de6\u8fb92\u53f7\u9875\u6700\u5c0fid\u662f1\uff0c\u5411\u53f33\u53f7\u9875\u6700\u5c0fid\u662f4\uff0c\u7136\u540e4\u53f7\u9875\u6700\u5c0f\u662f7\uff0c\u6700\u540e5\u53f7\u9875\u6700\u5c0f\u662f10\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"355\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmuIO\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u90a3id=5\u7684\u6570\u636e\u5982\u679c\u5b58\u5728\uff0c<strong>5\u5927\u4e8e4\u5c0f\u4e8e7\uff0c\u90a3\u5fc5\u5b9a\u57283\u53f7\u9875\u91cc\u9762<\/strong>\u3002\u4e8e\u662f<strong>\u987a\u7740\u7684record\u7684\u9875\u5730\u5740\u5c31\u5230\u4e863\u53f7\u6570\u636e\u9875\u91cc<\/strong>\uff0c\u4e8e\u662f\u52a0\u8f7d3\u53f7\u6570\u636e\u9875\u5230\u5185\u5b58\u3002\u5728\u6570\u636e\u9875\u91cc\u627e\u5230id=5\u7684\u6570\u636e\u884c\uff0c\u5b8c\u6210\u67e5\u8be2\u3002<\/p>\n<p>\u53e6\u5916\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e0a\u9762\u7684\u9875\u7684\u9875\u53f7\u5e76\u4e0d\u662f\u8fde\u7eed\u7684\uff0c\u5b83\u4eec\u5728\u78c1\u76d8\u91cc\u4e5f\u4e0d\u4e00\u5b9a\u662f\u6328\u5728\u4e00\u8d77\u7684\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\u67e5\u8be2\u4e862\u4e2a\u9875\uff081\u53f7\u8ddf3\u53f7\uff09\uff0c\u5982\u679c\u8fd9\u4e09\u4e2a\u9875\u90fd\u5728\u78c1\u76d8\u4e2d\uff08\u6ca1\u6709\u88ab\u63d0\u524d\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff09\uff0c\u90a3\u4e48<strong>\u6700\u591a<\/strong>\u9700\u8981\u7ecf\u5386\u4e24\u6b21<strong>\u78c1\u76d8IO\u67e5\u8be2<\/strong>\uff0c\u5b83\u4eec\u624d\u80fd\u88ab\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u3002\uff08\u5982\u679c\u8003\u86511\u53f7\u5982\u679c\u662froot\u5e38\u9a7b\u5185\u5b58\uff0c\u90a3\u4e48\u9700\u8981\u78c1\u76d8IO\u4e00\u6b21\u5373\u53ef\u5b9a\u4f4d\u5230\uff09\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"363\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmuIP\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p><strong>\u67e5\u8be2\u6b65\u9aa4\u603b\u7ed3<\/strong><\/p>\n<p>\u4ee5\u805a\u7c07\u7d22\u5f15\u641c\u7d22\u4e3a\u4f8b\uff08\u5047\u8bbeid\u662f\u4e3b\u952e\uff09\uff1a<\/p>\n<ul>\n<li>\u4ece\u6839\u9875\u5f00\u59cb\u641c\u7d22 \uff1a<\/li>\n<\/ul>\n<p>\u52a0\u8f7d\u6839\u9875\uff08\u5e38\u9a7b\u5185\u5b58\uff09\u5230Buffer Pool\uff0c\u6839\u636e\u6307\u9488\u627e\u5230\u4e0b\u4e00\u5c42\u8282\u70b9\u3002<\/p>\n<ul>\n<li>\u9010\u5c42\u5b9a\u4f4d\u53f6\u5b50\u8282\u70b9 \uff1a<\/li>\n<\/ul>\n<p>\u5728\u975e\u53f6\u5b50\u8282\u70b9\u9875\uff08\u5b58\u50a8\u4e3b\u952e+\u6307\u9488\uff09\u4e2d\u4e8c\u5206\u67e5\u627e \uff0c\u5b9a\u4f4did=5\u6240\u5728\u8303\u56f4\u7684\u5b50\u9875\uff08\u5982\u9875A\uff09\u3002<\/p>\n<p>\u91cd\u590d\u6b64\u8fc7\u7a0b\uff0c\u76f4\u5230\u53f6\u5b50\u8282\u70b9\u9875\u3002<\/p>\n<ul>\n<li>\u53f6\u5b50\u8282\u70b9\u4e8c\u5206\u67e5\u627e \uff1a<\/li>\n<\/ul>\n<p>\u5728\u53f6\u5b50\u9875\u5185\u901a\u8fc7\u4e3b\u952e\u4e8c\u5206\u67e5\u627e\u5b9a\u4f4d\u5230\u884c\u8bb0\u5f55\uff0c\u8fd4\u56de\u5b8c\u6574\u6570\u636e\u3002<\/p>\n<p>I\/O\u6b21\u6570\u5206\u6790 \uff1a<\/p>\n<ul>\n<li>\u6811\u9ad8\u4e3a3\u65f6\uff1a\u6839\u9875 + \u4e2d\u95f4\u9875 + \u53f6\u5b50\u9875 = 3\u6b21\u78c1\u76d8I\/O \uff08\u82e5\u9875\u4e0d\u5728\u5185\u5b58\u4e2d\uff09\u3002<\/li>\n<li>B+\u6811\u77ee\u80d6\u7279\u6027 \uff1a3\u5c42\u5373\u53ef\u652f\u6491\u5343\u4e07\u7ea7\u6570\u636e\uff08\u63a5\u4e0b\u6765\u5206\u6790\uff09\uff0c\u662f\u9ad8\u6548\u67e5\u8be2\u7684\u57fa\u7840\u3002<\/li>\n<\/ul>\n<h2>\u56db\u30012000\u4e07\u8fd9\u4e2a\u4e0a\u9650\u503c\u5982\u4f55\u7b97\u51fa\u6765\u7684\uff1f<\/h2>\n<p>\u5728\u6211\u4eec\u6e05\u695a\u4e86MySQL\u662f\u5982\u4f55\u5b58\u50a8\u53ca\u67e5\u8be2\u6570\u636e\u540e\uff0c\u90a3\u4e482000\u4e07\u8fd9\u4e2a\u6570\u503c\u53c8\u662f\u5982\u4f55\u5f97\u6765\u7684\u5462\uff1f\u8d85\u8fc72000\u4e07\u6bd4\u5982\u5b58\u50a8\u4e00\u4ebf\u6570\u636e\u4f1a\u5982\u4f55\uff1f<\/p>\n<p><strong>B+\u6811\u627f\u8f7d\u7684\u8bb0\u5f55\u6570\u91cf<\/strong><\/p>\n<p>\u4ece\u4e0a\u9762\u7684\u7ed3\u6784\u91cc\u53ef\u4ee5\u770b\u51faB+\u6811\u7684<strong>\u6700\u672b\u7ea7\u53f6\u5b50\u7ed3\u70b9<\/strong>\u91cc\u653e\u4e86record\u6570\u636e\u3002\u800c<strong>\u975e\u53f6\u5b50\u7ed3\u70b9<\/strong>\u91cc\u5219\u653e\u4e86\u7528\u6765\u52a0\u901f\u67e5\u8be2\u7684\u7d22\u5f15\u6570\u636e\u3002\u4e5f\u5c31\u662f\u8bf4\u540c\u6837\u4e00\u4e2a16k\u7684\u9875\uff0c\u975e\u53f6\u5b50\u8282\u70b9\u91cc\u6bcf\u4e00\u6761\u6570\u636e\u90fd\u6307\u5411\u4e00\u4e2a\u65b0\u7684\u9875\uff0c\u800c\u65b0\u7684\u9875\u6709\u4e24\u79cd\u53ef\u80fd\u3002<\/p>\n<ul>\n<li>\u5982\u679c\u662f\u672b\u7ea7\u53f6\u5b50\u8282\u70b9\u7684\u8bdd\uff0c\u90a3\u4e48\u91cc\u9762\u653e\u7684\u5c31\u662f\u4e00\u884c\u884crecord\u6570\u636e\u3002<\/li>\n<li>\u5982\u679c\u662f\u975e\u53f6\u5b50\u8282\u70b9\uff0c\u90a3\u4e48\u5c31\u4f1a\u5faa\u73af\u7ee7\u7eed\u6307\u5411\u65b0\u7684\u6570\u636e\u9875\u3002<\/li>\n<\/ul>\n<p>\u5047\u8bbe<\/p>\n<ul>\n<li>\u975e\u53f6\u5b50\u8282\u70b9\u5185\u6307\u5411\u5176\u4ed6\u5185\u5b58\u9875\u7684\u6307\u9488\u6570\u91cf\u4e3ax\uff08\u975e\u53f6\u5b50\u8282\u70b9\u6307\u9488\u6247\u51fa\u503c\uff09<\/li>\n<li>\u53f6\u5b50\u8282\u70b9\u5185\u80fd\u5bb9\u7eb3\u7684record\u6570\u91cf\u4e3ay\uff08\u53f6\u5b50\u8282\u70b9\u5355\u9875\u884c\u6570\uff09<\/li>\n<li>B+\u6811\u7684\u5c42\u6570\u4e3az\uff08\u6811\u9ad8\uff09<\/li>\n<\/ul>\n<p>\u90a3\u8fd9\u68f5B+\u6811\u653e\u7684<strong>\u884c\u6570\u636e\u603b\u91cf\u7b49\u4e8e (x ^ (z-1)) * y<\/strong>\u3002<\/p>\n<p>\u6838\u5fc3\u516c\u5f0f\uff1a\u5355\u8868\u6700\u5927\u884c\u6570 = \u975e\u53f6\u8282\u70b9\u6247\u51fa\u6307\u9488\u6570 ^ (\u6811\u9ad8-1) \u00d7 \u5355\u9875\u884c\u6570<\/p>\n<p><strong>\u975e\u53f6\u5b50\u8282\u70b9\u6307\u9488\u6247\u51fa\u503c\u2014x \u600e\u4e48\u7b97\uff1f<\/strong><\/p>\n<p>\u6211\u4eec\u56de\u53bb\u770b\u6570\u636e\u9875\u7684\u7ed3\u6784\u3002<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"527\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmuIJ\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>\u975e\u53f6\u5b50\u8282\u70b9\u91cc\u4e3b\u8981\u653e\u7d22\u5f15\u67e5\u8be2\u76f8\u5173\u7684\u6570\u636e\uff0c\u653e\u7684\u662f\u4e3b\u952e\u548c\u6307\u5411\u9875\u53f7\u3002<\/p>\n<ul>\n<li>\u4e3b\u952e\u5047\u8bbe\u662fbigint\uff088Byte\uff09\uff0c\u800c\u9875\u53f7\u5728\u6e90\u7801\u91cc\u53ebFIL\/_PAGE\/_OFFSET\uff084Byte\uff09\uff0c\u90a3\u4e48\u975e\u53f6\u5b50\u8282\u70b9\u91cc\u7684\u4e00\u6761\u6570\u636e\u662f12Byte\u5de6\u53f3\u3002<\/li>\n<li>\u6574\u4e2a\u6570\u636e\u987516k\uff0c \u9875\u5934\u9875\u5c3e\u90a3\u90e8\u5206\u6570\u636e\u5168\u52a0\u8d77\u6765\u5927\u6982128Byte\uff0c\u52a0\u4e0a\u9875\u76ee\u5f55\u6bdb\u4f30\u53601k\u5427\u3002<strong>\u90a3\u5269\u4e0b\u768415k\u9664\u4ee512Byte\uff0c\u7b49\u4e8e1280\uff0c\u4e5f\u5c31\u662f\u53ef\u4ee5\u6307\u5411x=1280\u9875\u3002<\/strong><\/li>\n<\/ul>\n<p>\u6211\u4eec\u5e38\u8bf4\u7684\u4e8c\u53c9\u6811\u6307\u7684\u662f\u4e00\u4e2a\u7ed3\u70b9\u53ef\u4ee5\u53d1\u6563\u51fa\u4e24\u4e2a\u65b0\u7684\u7ed3\u70b9\u3002m\u53c9\u6811\u4e00\u4e2a\u8282\u70b9\u80fd\u6307\u5411m\u4e2a\u65b0\u7684\u7ed3\u70b9\u3002\u8fd9\u4e2a\u6307\u5411\u65b0\u8282\u70b9\u7684\u64cd\u4f5c\u5c31\u53eb<strong>\u6247\u51fa\uff08fanout\uff09<\/strong> \u3002\u800c\u4e0a\u9762\u7684B+\u6811\uff0c\u5b83\u80fd\u6307\u54111280\u4e2a\u65b0\u7684\u8282\u70b9\uff0c\u6050\u6016\u5982\u65af\uff0c\u53ef\u4ee5\u8bf4<strong>\u6247\u51fa\u975e\u5e38\u9ad8<\/strong>\u4e86\u3002<\/p>\n<p><strong>\u5355\u9875\u884c\u6570\u2014y\u7684\u8ba1\u7b97<\/strong><\/p>\n<p>\u53f6\u5b50\u8282\u70b9\u548c\u975e\u53f6\u5b50\u8282\u70b9\u7684\u6570\u636e\u7ed3\u6784\u662f\u4e00\u6837\u7684\uff0c\u6240\u4ee5\u4e5f\u5047\u8bbe\u5269\u4e0b15kb\u53ef\u4ee5\u53d1\u6325\u3002<\/p>\n<p>\u53f6\u5b50\u8282\u70b9\u91cc\u653e\u7684\u662f\u771f\u6b63\u7684\u884c\u6570\u636e\u3002\u5047\u8bbe\u4e00\u6761\u884c\u6570\u636e1kb\uff0c\u6240\u4ee5\u4e00\u9875\u91cc\u80fd\u653e<strong>y=15\u884c<\/strong>\u3002<\/p>\n<p><strong>\u884c\u603b\u6570\u8ba1\u7b97<\/strong><\/p>\n<p>\u56de\u5230 (x ^ (z-1)) * y \u8fd9\u4e2a\u516c\u5f0f\u3002<\/p>\n<p>\u5df2\u77e5x=1280\uff0cy=15\u3002<\/p>\n<p>\u5047\u8bbeB+\u6811\u662f<strong>\u4e24\u5c42<\/strong>\uff0c\u90a3z=2\u3002\u5219\u662f(1280 ^ (2-1)) * 15 \u2248 2w<\/p>\n<p>\u5047\u8bbeB+\u6811\u662f<strong>\u4e09\u5c42<\/strong>\uff0c\u90a3z=3\u3002\u5219\u662f <strong>(1280 ^ (3-1)) * 15 \u2248 2.5kw<\/strong><\/p>\n<p><strong>\u8fd9\u4e2a2.5kw\uff0c\u5c31\u662f\u6211\u4eec\u5e38\u8bf4\u7684\u5355\u8868\u5efa\u8bae\u6700\u5927\u884c\u65702kw\u7684\u7531\u6765\u3002<\/strong> \u6bd5\u7adf\u518d\u52a0\u4e00\u5c42\uff0c\u6570\u636e\u5c31\u5927\u5f97\u6709\u70b9\u79bb\u8c31\u4e86\u3002\u4e09\u5c42\u6570\u636e\u9875\u5bf9\u5e94\u6700\u591a\u4e09\u6b21\u78c1\u76d8IO\uff0c\u4e5f\u6bd4\u8f83\u5408\u7406\u3002<\/p>\n<ul>\n<li>\u4e34\u754c\u70b9 \uff1a\u5f53\u884c\u6570\u7a81\u7834\u7ea62000\u4e07\u65f6\uff0c\u6811\u9ad8\u53ef\u80fd\u4ece3\u5c42\u53d8\u4e3a4\u5c42\uff1a<\/li>\n<li>\u6811\u9ad8=4\u65f6\uff1a\u6700\u5927\u884c\u6570 \u2248 1280^3 \u00d7 15 \u7ed3\u679c\u5df2\u8d85\u8fc7\u767e\u4ebf\uff08\u8fdc\u5927\u4e8e2000\u4e07\uff09<\/li>\n<li>\u6027\u80fd\u65ad\u5d16 \uff1a\u6811\u9ad8\u4ece3\u21924\uff0c\u67e5\u8be2I\/O\u6b21\u6570\u4ece3\u6b21\u589e\u81f34\u6b21 \uff08\u591a\u4e00\u6b21\u78c1\u76d8\u5bfb\u5740\uff09\uff0c\u5c24\u5176\u5728\u56de\u8868\u67e5\u8be2\u3001\u9ad8\u5e76\u53d1\u3001\u6df1\u5206\u9875\u65f6\u6027\u80fd\u9aa4\u964d\u3002<br \/>*<\/li>\n<\/ul>\n<p><strong>\u884c\u6570\u8d85\u4e00\u4ebf\u5c31\u6162\u4e86\u5417\uff1f<\/strong><\/p>\n<p>\u4e0a\u9762\u5047\u8bbe\u5355\u884c\u6570\u636e\u7528\u4e861kb\uff0c\u6240\u4ee5\u4e00\u4e2a\u6570\u636e\u9875\u80fd\u653e\u4e2a15\u884c\u6570\u636e\u3002<\/p>\n<p>\u5982\u679c\u6211\u5355\u884c\u6570\u636e\u7528\u4e0d\u4e86\u8fd9\u4e48\u591a\uff0c\u6bd4\u5982\u53ea\u7528\u4e86250byte\u3002\u90a3\u4e48\u5355\u4e2a\u6570\u636e\u9875\u80fd\u653e60\u884c\u6570\u636e\u3002<\/p>\n<p>\u90a3\u540c\u6837\u662f\u4e09\u5c42B+\u6811\uff0c\u5355\u8868\u652f\u6301\u7684\u884c\u6570\u5c31\u662f (1280 ^ (3-1)) * 60 \u2248 1\u4e2a\u4ebf\u3002<\/p>\n<p>\u4f60\u770b\u6211\u4e00\u4e2a\u4ebf\u7684\u6570\u636e\uff0c\u5176\u5b9e\u4e5f\u5c31\u4e09\u5c42B+\u6811\uff0c\u5728\u8fd9\u4e2aB+\u6811\u91cc\u8981\u67e5\u5230\u67d0\u884c\u6570\u636e\uff0c\u6700\u591a\u4e5f\u662f\u4e09\u6b21\u78c1\u76d8IO\u3002\u6240\u4ee5\u5e76\u4e0d\u6162\u3002<\/p>\n<p><strong>B\u6811\u627f\u8f7d\u7684\u8bb0\u5f55\u6570\u91cf<\/strong><\/p>\n<p>\u6211\u4eec\u90fd\u77e5\u9053\uff0c\u73b0\u5728MySQL\u7684\u7d22\u5f15\u90fd\u662fB+\u6811\uff0c\u800c\u6709\u4e00\u79cd\u6811\uff0c\u8ddfB+\u6811\u5f88\u50cf\uff0c\u53eb<strong>B\u6811\uff0c\u4e5f\u53ebB-\u6811<\/strong>\u3002<\/p>\n<p>\u5b83\u8ddfB+\u6811\u6700\u5927\u7684\u533a\u522b\u5728\u4e8e\uff0c<strong>B+\u6811\u53ea\u5728\u672b\u7ea7\u53f6\u5b50\u7ed3\u70b9\u5904\u653e\u6570\u636e\u8868\u884c\u6570\u636e\uff0c\u800cB\u6811\u5219\u4f1a\u5728\u53f6\u5b50\u548c\u975e\u53f6\u5b50\u7ed3\u70b9\u4e0a\u90fd\u653e\u3002<\/strong><\/p>\n<p>\u4e8e\u662f\uff0cB\u6811\u7684\u7ed3\u6784\u5c31\u7c7b\u4f3c\u8fd9\u6837\uff1a<\/p>\n<p><img decoding=\"async\" width=\"723\" height=\"418\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVdmuIS\" alt=\"image.png\" title=\"image.png\" loading=\"lazy\"><\/p>\n<p>B\u6811\u5c06\u884c\u6570\u636e\u90fd\u5b58\u5728\u975e\u53f6\u5b50\u8282\u70b9\u4e0a\uff0c\u5047\u8bbe\u6bcf\u4e2a\u6570\u636e\u9875\u8fd8\u662f16kb\uff0c\u6390\u5934\u53bb\u5c3e\u6bcf\u9875\u526915kb\uff0c\u5e76\u4e14\u4e00\u6761\u6570\u636e\u8868\u884c\u6570\u636e\u8fd8\u662f\u53601kb\uff0c\u5c31\u7b97\u4e0d\u8003\u8651\u5404\u79cd\u9875\u6307\u9488\u7684\u60c5\u51b5\u4e0b\uff0c\u4e5f\u53ea\u80fd\u653e\u4e2a15\u6761\u6570\u636e\u3002<strong>\u6570\u636e\u9875\u6247\u51fa\u660e\u663e\u53d8\u5c11\u4e86<\/strong>\u3002<\/p>\n<p>\u8ba1\u7b97\u53ef\u627f\u8f7d\u7684\u603b\u884c\u6570\u7684\u516c\u5f0f\u4e5f\u53d8\u6210\u4e86\u4e00\u4e2a<strong>\u7b49\u6bd4\u6570\u5217<\/strong>\u3002<\/p>\n<p>15 + 15^2 +15^3 + &#8230; + 15^z<\/p>\n<p>\u5176\u4e2d<strong>z\u8fd8\u662f\u5c42\u6570<\/strong>\u7684\u610f\u601d\u3002<\/p>\n<p>\u4e3a\u4e86<strong>\u80fd\u653e2kw\u5de6\u53f3\u7684\u6570\u636e\uff0c\u9700\u8981z&gt;=6<\/strong>\u3002\u4e5f\u5c31\u662f\u6811\u9700\u8981\u67096\u5c42\uff0c\u67e5\u4e00\u6b21\u8981\u8bbf\u95ee6\u4e2a\u9875\u3002\u5047\u8bbe\u8fd96\u4e2a\u9875\u5e76\u4e0d\u8fde\u7eed\uff0c\u4e3a\u4e86\u67e5\u8be2\u5176\u4e2d\u4e00\u6761\u6570\u636e\uff0c\u6700\u574f\u60c5\u51b5\u9700\u8981\u8fdb\u884c<strong>6\u6b21\u78c1\u76d8IO<\/strong>\u3002<\/p>\n<p>\u800cB+\u6811\u540c\u6837\u60c5\u51b5\u4e0b\u653e2kw\u6570\u636e\u5de6\u53f3\uff0c\u67e5\u4e00\u6b21\u6700\u591a\u662f<strong>3\u6b21\u78c1\u76d8IO<\/strong>\u3002<\/p>\n<p>\u78c1\u76d8IO\u8d8a\u591a\u5219\u8d8a\u6162\uff0c\u8fd9\u4e24\u8005\u5728\u6027\u80fd\u4e0a\u5dee\u8ddd\u7565\u5927\u3002<\/p>\n<p>\u4e3a\u6b64\uff0c<strong>B+\u6811\u6bd4B\u6811\u66f4\u9002\u5408\u6210\u4e3aMySQL\u7684\u7d22\u5f15<\/strong>\u3002<\/p>\n<h2>\u4e94\u3001\u603b\u7ed3\uff1a\u751f\u6b7b\u535a\u5f08\u7684\u6838\u5fc3<\/h2>\n<p>B+\u6811\u53f6\u5b50\u548c\u975e\u53f6\u5b50\u7ed3\u70b9\u7684\u6570\u636e\u9875\u90fd\u662f16k\uff0c\u4e14\u6570\u636e\u7ed3\u6784\u4e00\u81f4\uff0c\u533a\u522b\u5728\u4e8e\u53f6\u5b50\u8282\u70b9\u653e\u7684\u662f\u771f\u5b9e\u7684\u884c\u6570\u636e\uff0c\u800c\u975e\u53f6\u5b50\u7ed3\u70b9\u653e\u7684\u662f\u4e3b\u952e\u548c\u4e0b\u4e00\u4e2a\u9875\u7684\u5730\u5740\u3002<\/p>\n<p>B+\u6811\u4e00\u822c\u6709\u4e24\u5230\u4e09\u5c42\uff0c\u7531\u4e8e\u5176\u9ad8\u6247\u51fa\uff0c\u4e09\u5c42\u5c31\u80fd\u652f\u63012kw\u4ee5\u4e0a\u7684\u6570\u636e\uff0c\u4e14\u4e00\u6b21\u67e5\u8be2\u6700\u591a1\/~3\u6b21\u78c1\u76d8IO\uff0c\u6027\u80fd\u4e5f\u8fd8\u884c\u3002<\/p>\n<p>\u5b58\u50a8\u540c\u6837\u91cf\u7ea7\u7684\u6570\u636e\uff0cB\u6811\u6bd4B+\u6811\u5c42\u7ea7\u66f4\u9ad8\uff0c\u56e0\u6b64\u78c1\u76d8IO\u4e5f\u66f4\u591a\uff0c\u6240\u4ee5B+\u6811\u66f4\u9002\u5408\u6210\u4e3aMySQL\u7d22\u5f15\u3002<\/p>\n<p>\u7d22\u5f15\u7ed3\u6784\u4e0d\u4f1a\u5f71\u54cd\u5355\u8868\u6700\u5927\u884c\u6570\uff0c2kw\u4e5f\u53ea\u662f\u63a8\u8350\u503c\uff0c\u8d85\u8fc7\u4e86\u8fd9\u4e2a\u503c\u53ef\u80fd\u4f1a\u5bfc\u81f4B+\u6811\u5c42\u7ea7\u66f4\u9ad8\uff0c\u5f71\u54cd\u67e5\u8be2\u6027\u80fd\u3002<\/p>\n<p>\u5355\u8868\u6700\u5927\u503c\u8fd8\u53d7\u4e3b\u952e\u5927\u5c0f\u548c\u78c1\u76d8\u5927\u5c0f\u9650\u5236\u3002<\/p>\n<p>16KB\u9875\u4e0eB+\u6811\u7684\u5e73\u8861 \uff1a\u9875\u5927\u5c0f\u9650\u5236\u4e86\u5355\u9875\u884c\u6570\u548c\u6307\u9488\u6570\uff0cB+\u6811\u901a\u8fc7\u591a\u9636\u5e73\u8861\u786e\u4fdd\u4f4e\u6811\u9ad8\u3002<\/p>\n<p>2000\u4e07\u4e0d\u662f\u7edd\u5bf9 \uff1a\u82e5\u884c\u5c0f\u4e8e1KB\uff08\u5982\u53ea\u5b58ID\uff09\uff0c\u4e0a\u9650\u53ef\u52305000\u4e07+\uff1b\u82e5\u884c\u8f83\u5927\uff08\u5982\u542b\u5927\u5b57\u6bb5\uff09\uff0c\u53ef\u80fd500\u4e07\u5c31\u6027\u80fd\u4e0b\u964d\u3002<\/p>\n<p><strong>\u4f18\u5316\u5efa\u8bae\uff1a<\/strong><\/p>\n<ul>\n<li>\u63a7\u5236\u5355\u884c\u5927\u5c0f\uff08\u907f\u514dTEXT\/BLOB\u76f4\u63a5\u5165\u8868\uff09\u3002<\/li>\n<li>\u5206\u5e93\u5206\u8868\uff1a\u5355\u8868\u63a5\u8fd1\u5343\u4e07\u7ea7\u65f6\u63d0\u524d\u89c4\u5212\u3002<\/li>\n<li>\u51b7\u70ed\u5206\u79bb\uff1a\u5386\u53f2\u6570\u636e\u5f52\u6863\u3002<\/li>\n<\/ul>\n<p><em>\u672c\u8d28\uff1a\u901a\u8fc7\u9875\u5927\u5c0f\u548cB+\u6811\u7ed3\u6784\uff0cMySQL\u5728\u78c1\u76d8I\/O\u548c\u5185\u5b58\u6548\u7387\u4e4b\u95f4\u53d6\u5f97\u5e73\u8861\u3002<strong>\u8d85\u51fa\u5e73\u8861\u70b9\u65f6\uff0c\u6027\u80fd\u4ece\u201c\u5e73\u7f13\u4e0b\u964d\u201d\u53d8\u4e3a\u201c\u65ad\u5d16\u4e0b\u8dcc\u201d\u3002<\/strong><\/em><\/p>\n<h2>\u516d\u3001\u62d3\u5c55\u95ee\u9898<\/h2>\n<p><strong>\u4e3a\u5565\u8bbe\u8ba1\u5355\u9875\u5927\u5c0f16k?<\/strong><\/p>\n<p>MySQL\u7d22\u5f15\u91c7\u7528\u7684\u662fB+\u6811\u6570\u636e\u7ed3\u6784\uff0c\u6bcf\u4e2a\u53f6\u5b50\u8282\u70b9\uff08\u53f6\u5b50\u5757\uff09\u5b58\u50a8\u4e00\u4e2a\u7d22\u5f15\u6761\u76ee\u7684\u4fe1\u606f\u3002\u800cMySQL\u4f7f\u7528\u7684\u662f\u9875\u5f0f\u5b58\u50a8\uff08Paged storage\uff09\u6280\u672f\uff0c\u5c06\u78c1\u76d8\u4e0a\u7684\u6570\u636e\u5212\u5206\u4e3a\u4e00\u4e2a\u4e2a\u56fa\u5b9a\u5927\u5c0f\u7684\u9875\u9762\uff0c\u6bcf\u4e2a\u9875\u9762\u5305\u542b\u82e5\u5e72\u4e2a\u7d22\u5f15\u6761\u76ee\u3002<\/p>\n<p>\u4e3a\u4e86\u63d0\u9ad8\u7d22\u5f15\u67e5\u8be2\u6548\u7387\u548c\u964d\u4f4e\u78c1\u76d8I\/O\u7684\u9891\u7387\uff0cMySQL\u8bbe\u7f6e\u4e8616KB\u7684\u5355\u9875\u5927\u5c0f\u3002\u8fd9\u662f\u56e0\u4e3a\u5728MySQL\u4e2d\uff1a<\/p>\n<ul>\n<li><strong>\u5185\u5b58\u5927\u5c0f\u9650\u5236<\/strong>\uff1aMySQL\u7684\u7d22\u5f15\u9700\u8981\u653e\u5728\u5185\u5b58\u4e2d\u8fdb\u884c\u67e5\u8be2\uff0c\u5982\u679c\u9875\u9762\u8fc7\u5927\uff0c\u5c06\u5bfc\u81f4\u7d22\u5f15\u65e0\u6cd5\u5b8c\u5168\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\uff0c\u4ece\u800c\u5f71\u54cd\u67e5\u8be2\u6548\u7387\u3002<\/li>\n<li><strong>\u78c1\u76d8I\/O\u9650\u5236\uff1a<\/strong> \u5f53\u9700\u8981\u67e5\u8be2\u4e00\u4e2a\u7d22\u5f15\u65f6\uff0cMySQL\u9700\u8981\u628a\u76f8\u5173\u7684\u9875\u9762\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u8fdb\u884c\u5904\u7406\uff0c\u5982\u679c\u9875\u9762\u8fc7\u5927\uff0c\u5c06\u589e\u52a0\u78c1\u76d8I\/O\u7684\u5f00\u9500\uff0c\u964d\u4f4e\u67e5\u8be2\u6548\u7387\u3002<\/li>\n<li><strong>\u7d22\u5f15\u6548\u7387\u9650\u5236<\/strong>\uff1a\u5728B+\u6811\u6570\u636e\u7ed3\u6784\u4e2d\uff0c\u6bcf\u4e2a\u53f6\u5b50\u8282\u70b9\u5b58\u50a8\u7740\u4e00\u4e2a\u7d22\u5f15\u6761\u76ee\uff0c\u56e0\u6b64\u5982\u679c\u6bcf\u4e2a\u9875\u9762\u80fd\u591f\u5b58\u653e\u66f4\u591a\u7d22\u5f15\u6761\u76ee\uff0c\u5c31\u53ef\u4ee5\u51cf\u5c11B+\u6811\u7ed3\u6784\u7684\u6df1\u5ea6\uff0c\u4ece\u800c\u63d0\u9ad8\u7d22\u5f15\u67e5\u8be2\u6548\u7387\u3002<\/li>\n<\/ul>\n<p>\u7efc\u4e0a\u6240\u8ff0\uff0cMySQL\u7d22\u5f15\u5355\u9875\u5927\u5c0f\u8bbe\u7f6e\u4e3a16KB\u53ef\u4ee5\u517c\u987e\u5185\u5b58\u5927\u5c0f\u3001\u78c1\u76d8I\/O\u548c\u7d22\u5f15\u67e5\u8be2\u6548\u7387\u7b49\u591a\u65b9\u9762\u56e0\u7d20\uff0c\u662f\u4e00\u79cd\u6bd4\u8f83\u4f18\u5316\u7684\u65b9\u6848\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5bf9\u4e8e\u67d0\u4e9b\u7279\u6b8a\u7684\u5e94\u7528\u573a\u666f\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u5bf9\u5355\u9875\u5927\u5c0f\u8fdb\u884c\u8c03\u6574\u3002<\/p>\n<p><strong>\u5b57\u7b26\u4e32\u600e\u4e48\u505a\u7d22\u5f15?<\/strong><\/p>\n<p>\u5728MySQL\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7B+\u6811\u7d22\u5f15\u7ed3\u6784\u5bf9\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u5217\u8fdb\u884c\u6392\u5e8f\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u5f53\u4f7f\u7528B+\u6811\u7d22\u5f15\u8fdb\u884c\u6392\u5e8f\u65f6\uff0cMySQL\u4f1a\u6839\u636e\u5b57\u7b26\u4e32\u7684\u5b57\u5178\u5e8f\uff08Lexicographic Order\uff09\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<p>\u5b57\u5178\u5e8f\u662f\u6307\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u4f9d\u6b21\u6bd4\u8f83\uff0c\u76f4\u5230\u627e\u5230\u4e0d\u540c\u7684\u5b57\u7b26\u4e3a\u6b62\u3002\u5982\u679c\u4e24\u4e2a\u5b57\u7b26\u4e32\u5728\u76f8\u540c\u7684\u4f4d\u7f6e\u4e0a\u5177\u6709\u4e0d\u540c\u7684\u5b57\u7b26\uff0c\u5219\u4ee5\u8fd9\u4e24\u4e2a\u5b57\u7b26\u7684ASCII\u7801\u503c\u6bd4\u8f83\u5927\u5c0f\uff0c\u5e76\u6309\u7167\u5347\u5e8f\u6216\u964d\u5e8f\u6392\u5217\u3002\u4f8b\u5982\uff0c\u5b57\u7b26\u4e32&#8221;abc&#8221;\u548c&#8221;def&#8221;\u6bd4\u8f83\u5927\u5c0f\u65f6\uff0c\u5148\u6bd4\u8f83&#8217;a&#8217;\u548c&#8217;d&#8217;\u7684ASCII\u7801\uff0c\u56e0\u4e3a&#8217;d&#8217;\u7684ASCII\u7801\u5927\u4e8e&#8217;a&#8217;\uff0c\u6240\u4ee5&#8221;def&#8221;\u5927\u4e8e&#8221;abc&#8221;\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5982\u679c\u5bf9\u957f\u5b57\u7b26\u4e32\u8fdb\u884c\u6392\u5e8f\uff0c\u53ef\u80fd\u4f1a\u5f71\u54cd\u7d22\u5f15\u67e5\u8be2\u7684\u6027\u80fd\uff0c\u56e0\u6b64\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u524d\u7f00\u7d22\u5f15\u6216\u5168\u6587\u7d22\u5f15\u6765\u4f18\u5316\u3002\u540c\u65f6\uff0c\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u8fd8\u9700\u8981\u6ce8\u610f\u9009\u62e9\u9002\u5f53\u7684\u5b57\u7b26\u96c6\u548c\u6392\u5e8f\u89c4\u5219\uff0c\u4ee5\u786e\u4fdd\u6392\u5e8f\u7ed3\u679c\u6b63\u786e\u548c\u7a33\u5b9a\u3002<\/p>\n<p><strong>\u4e2d\u6587\u5b57\u7b26\u4e32\u600e\u4e48\u505a\u7d22\u5f15?<\/strong><\/p>\n<p>\u4e2d\u6587\u5b57\u7b26\u4e32\u6392\u5e8f\u5728MySQL\u4e2d\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u5f0f\uff0c\u6700\u5e38\u89c1\u7684\u6709\u4ee5\u4e0b\u4e24\u79cd\uff1a<\/p>\n<ul>\n<li>\u6309\u62fc\u97f3\u6392\u5e8f\uff1a\u5bf9\u4e8e\u4e2d\u6587\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u6309\u7167\u62fc\u97f3\u8fdb\u884c\u6392\u5e8f\u3002\u53ef\u4ee5\u4f7f\u7528\u62fc\u97f3\u6392\u5e8f\u63d2\u4ef6\uff0c\u5982pinyin\u6216zhuyin\u63d2\u4ef6\uff0c\u6765\u5b9e\u73b0\u4e2d\u6587\u5b57\u7b26\u4e32\u6309\u7167\u62fc\u97f3\u8fdb\u884c\u6392\u5e8f\u3002\u8fd9\u4e9b\u63d2\u4ef6\u4f1a\u5c06\u4e2d\u6587\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u62fc\u97f3\u6216\u6ce8\u97f3\u540e\uff0c\u518d\u8fdb\u884c\u6392\u5e8f\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff0c\u5148\u5b89\u88c5pinyin\u63d2\u4ef6\uff1a<\/p>\n<pre><code>INSTALL\u00a0PLUGIN pinyin SONAME\u00a0'ha_pinyin.so';\n<\/code><\/pre>\n<p>\u7136\u540e\u521b\u5efa\u5bf9\u5e94\u7684\u7d22\u5f15\u5e76\u6309\u62fc\u97f3\u6392\u5e8f\uff1a<\/p>\n<pre><code>CREATE\u00a0INDEX idx_name_pinyin\u00a0ON\u00a0mytable(name)\u00a0USING\u00a0BTREE\u00a0WITH\u00a0PARSER pinyin;\nSELECT\u00a0*\u00a0FROM\u00a0mytable\u00a0ORDER\u00a0BY\u00a0name\u00a0COLLATE\u00a0pinyin;\n<\/code><\/pre>\n<ul>\n<li>\u6309Unicode\u7801\u70b9\u6392\u5e8f\uff1a\u53ef\u4ee5\u4f7f\u7528UTF-8\u5b57\u7b26\u96c6\uff0c\u5e76\u9009\u62e9utf8mb4\/_unicode\/_ci\u6392\u5e8f\u89c4\u5219\uff0c\u5728\u4f7f\u7528\u6b64\u6392\u5e8f\u89c4\u5219\u65f6\uff0cMySQL\u4f1a\u6309\u7167Unicode\u7801\u70b9\u8fdb\u884c\u6392\u5e8f\uff0c\u9002\u5408\u4e8e\u8f83\u4e3a\u901a\u7528\u7684\u4e2d\u6587\u5b57\u7b26\u4e32\u6392\u5e8f\u9700\u6c42\u3002<\/li>\n<\/ul>\n<p>\u4f8b\u5982\uff1a<\/p>\n<pre><code>CREATE\u00a0INDEX idx_name_unicode\u00a0ON\u00a0mytable(name)\u00a0USING\u00a0BTREE;\nSELECT\u00a0*\u00a0FROM\u00a0mytable\u00a0ORDER\u00a0BY\u00a0name\u00a0COLLATE\u00a0utf8mb4_unicode_ci;\n<\/code><\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u4e0d\u540c\u7684\u6392\u5e8f\u65b9\u5f0f\u53ef\u80fd\u4f1a\u5bf9\u6027\u80fd\u4ea7\u751f\u5f71\u54cd\uff0c\u56e0\u6b64\u9700\u8981\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6392\u5e8f\u65b9\u5f0f\uff0c\u5e76\u8fdb\u884c\u5fc5\u8981\u7684\u6d4b\u8bd5\u548c\u9a8c\u8bc1\u3002\u540c\u65f6\uff0c\u5728\u8fdb\u884c\u4e2d\u6587\u5b57\u7b26\u4e32\u6392\u5e8f\u65f6\uff0c\u8fd8\u9700\u8981\u8003\u8651\u5230\u4e2d\u6587\u5b57\u7b26\u7684\u590d\u6742\u6027\uff0c\u4f8b\u5982\u540c\u97f3\u5b57\u3001\u7e41\u7b80\u4f53\u7b49\u95ee\u9898\uff0c\u4ee5\u786e\u4fdd\u6392\u5e8f\u7ed3\u679c\u6b63\u786e\u548c\u7a33\u5b9a\u3002<\/p>\n<p><strong>\u7d22\u5f15\u5b57\u6bb5\u7684\u957f\u5ea6\u6709\u9650\u5236\u5417?<\/strong><\/p>\n<p>\u5728MySQL\u4e2d\uff0c\u7d22\u5f15\u7684\u957f\u5ea6\u901a\u5e38\u662f\u7531\u4e09\u4e2a\u56e0\u7d20\u51b3\u5b9a\u7684\uff1a\u6570\u636e\u7c7b\u578b\u3001\u5b57\u7b26\u96c6\u548c\u5b58\u50a8\u5f15\u64ce\u3002\u4e0d\u540c\u7684\u6570\u636e\u7c7b\u578b\u3001\u5b57\u7b26\u96c6\u548c\u5b58\u50a8\u5f15\u64ce\u6240\u652f\u6301\u7684\u6700\u5927\u7d22\u5f15\u957f\u5ea6\u4e5f\u6709\u6240\u4e0d\u540c\u3002<\/p>\n<p>\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u7d22\u5f15\u7684\u957f\u5ea6\u4e0d\u5e94\u8be5\u8d85\u8fc7\u5b58\u50a8\u5f15\u64ce\u6240\u652f\u6301\u7684\u6700\u5927\u7d22\u5f15\u957f\u5ea6\u3002\u5728InnoDB\u5b58\u50a8\u5f15\u64ce\u4e2d\uff0c\u5355\u4e2a\u7d22\u5f15\u6240\u80fd\u5305\u542b\u7684\u6700\u5927\u5b57\u8282\u6570\u4e3a767\u4e2a\u5b57\u8282\uff08\u524d\u7f00\u7d22\u5f15\u9664\u5916\uff09\u3002\u5982\u679c\u7d22\u5f15\u7684\u957f\u5ea6\u8d85\u8fc7\u4e86\u6700\u5927\u957f\u5ea6\uff0c\u5219\u4f1a\u5bfc\u81f4\u521b\u5efa\u7d22\u5f15\u5931\u8d25\u3002\u56e0\u6b64\uff0c\u5728\u8bbe\u8ba1\u8868\u7ed3\u6784\u65f6\uff0c\u9700\u8981\u6839\u636e\u7d22\u5f15\u5217\u7684\u6570\u636e\u7c7b\u578b\u548c\u5b57\u7b26\u96c6\u7b49\u56e0\u7d20\uff0c\u5408\u7406\u8bbe\u7f6e\u7d22\u5f15\u957f\u5ea6\uff0c\u4ee5\u5145\u5206\u5229\u7528\u7d22\u5f15\u7684\u4f18\u52bf\u3002<\/p>\n<p>\u5bf9\u4e8e\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u7d22\u5f15\uff0c\u8fd8\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<ul>\n<li>\u5bf9\u4e8eUTF-8\u5b57\u7b26\u96c6\uff0c\u6bcf\u4e2a\u5b57\u7b26\u5360\u75281-4\u4e2a\u5b57\u8282\uff0c\u56e0\u6b64\u7d22\u5f15\u957f\u5ea6\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u8ba1\u7b97\u3002\u4f8b\u5982\uff0c\u4e00\u4e2aVARCHAR(255)\u7c7b\u578b\u7684\u5217\u5728utf8mb4\u5b57\u7b26\u96c6\u4e0b\u7684\u6700\u5927\u957f\u5ea6\u4e3a255*4=1020\u4e2a\u5b57\u8282\u3002<\/li>\n<li>\u53ef\u4ee5\u4f7f\u7528\u524d\u7f00\u7d22\u5f15\u6765\u51cf\u5c11\u7d22\u5f15\u7684\u5927\u5c0f\uff0c\u63d0\u9ad8\u7d22\u5f15\u67e5\u8be2\u6548\u7387\u3002\u5728\u521b\u5efa\u524d\u7f00\u7d22\u5f15\u65f6\u9700\u8981\u6307\u5b9a\u524d\u7f00\u957f\u5ea6\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5728\u521b\u5efa\u7d22\u5f15\u65f6\u4f7f\u7528name(10)\u6765\u6307\u5b9aname\u5217\u7684\u524d10\u4e2a\u5b57\u7b26\u4f5c\u4e3a\u7d22\u5f15\u3002<\/li>\n<li>\u5728\u4f7f\u7528\u5168\u6587\u7d22\u5f15\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u641c\u7d22\u65f6\uff0cMySQL\u4f1a\u5c06\u6587\u672c\u5185\u5bb9\u5206\u5272\u6210\u5355\u4e2a\u8bcd\u6c47\u540e\u5efa\u7acb\u5012\u6392\u7d22\u5f15\u3002\u5728\u5efa\u7acb\u7d22\u5f15\u65f6\u9700\u8981\u8003\u8651\u5230\u4e2d\u82f1\u6587\u5206\u8bcd\u7684\u95ee\u9898\uff0c\u4ee5\u786e\u4fdd\u5168\u6587\u7d22\u5f15\u7684\u51c6\u786e\u6027\u548c\u67e5\u8be2\u6548\u7387\u3002<\/li>\n<\/ul>\n<p>\u7efc\u4e0a\u6240\u8ff0\uff0c\u7d22\u5f15\u7684\u957f\u5ea6\u9700\u8981\u6839\u636e\u6570\u636e\u7c7b\u578b\u3001\u5b57\u7b26\u96c6\u548c\u5b58\u50a8\u5f15\u64ce\u7b49\u591a\u4e2a\u56e0\u7d20\u8fdb\u884c\u7efc\u5408\u8003\u8651\uff0c\u5e76\u5408\u7406\u8bbe\u7f6e\u7d22\u5f15\u957f\u5ea6\uff0c\u4ee5\u63d0\u9ad8\u7d22\u5f15\u67e5\u8be2\u6548\u7387\u548c\u5229\u7528\u7387\u3002<\/p>\n<p><strong>\u5f80\u671f\u56de\u987e<\/strong><\/p>\n<ol>\n<li>0\u57fa\u7840\u5e26\u4f60\u7cbe\u901aJava\u5bf9\u8c61\u5e8f\u5217\u5316&#8211;\u4ee5Hessian\u4e3a\u4f8b\uff5c\u5f97\u7269\u6280\u672f<\/li>\n<li>\u524d\u7aef\u65e5\u5fd7\u56de\u635e\u7cfb\u7edf\u7684\u6027\u80fd\u4f18\u5316\u5b9e\u8df5\uff5c\u5f97\u7269\u6280\u672f<\/li>\n<li>\u5f97\u7269\u7075\u7280\u641c\u7d22\u63a8\u8350\u8bcd\u5206\u53d1\u5e73\u53f0\u6f14\u8fdb3.0<\/li>\n<li>R8\u7591\u96be\u6742\u75c7\u5206\u6790\u5b9e\u6218\uff1a\u5916\u8054\u4f18\u5316\u8bbe\u8ba1\u7f3a\u9677\u5f15\u8d77\u7684\u5d29\u6e83\uff5c\u5f97\u7269\u6280\u672f<\/li>\n<li>\u53ef\u6269\u5c55\u7cfb\u7edf\u8bbe\u8ba1\u7684\u9ec4\u91d1\u6cd5\u5219\u4e0eGo\u8bed\u8a00\u5b9e\u8df5\uff5c\u5f97\u7269\u6280\u672f<\/li>\n<\/ol>\n<p>\u6587 \/ \u592a\u7a7a<\/p>\n<p>\u5173\u6ce8\u5f97\u7269\u6280\u672f\uff0c\u6bcf\u5468\u66f4\u65b0\u6280\u672f\u5e72\u8d27<\/p>\n<p>\u8981\u662f\u89c9\u5f97\u6587\u7ae0\u5bf9\u4f60\u6709\u5e2e\u52a9\u7684\u8bdd\uff0c\u6b22\u8fce\u8bc4\u8bba\u8f6c\u53d1\u70b9\u8d5e\uff5e<\/p>\n<p>\u672a\u7ecf\u5f97\u7269\u6280\u672f\u8bb8\u53ef\u4e25\u7981\u8f6c\u8f7d\uff0c\u5426\u5219\u4f9d\u6cd5\u8ffd\u7a76\u6cd5\u5f8b\u8d23\u4efb\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000047267977\">https:\/\/segmentfault.com\/a\/1190000047267977<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u524d \u8a00 \u672c\u6587\u6838\u5fc3\u4ecb\u7ecd\uff0c\u4e3a\u4f55\u4e1a\u754c\u4f1a\u6709\u8fd9\u6837\u7684\u8bf4\u6cd5\uff1f\u2014\u2014 \u201cMySQL\u5355\u8868\u5b58\u50a8\u6570\u636e\u91cf\u6700\u597d\u522b\u8d85\u8fc7\u5343\u4e07\u7ea7\u522b\u201d \u5f53\u7136\u8fd9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10021004","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10021004"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10021004\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10021004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10021004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10021004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}