{"id":2348,"date":"2023-06-27T15:33:04","date_gmt":"2023-06-27T07:33:04","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=2348"},"modified":"2023-07-13T15:50:30","modified_gmt":"2023-07-13T07:50:30","slug":"%e8%81%8a%e8%81%8a-sharding-jdbc-%e5%88%86%e5%ba%93%e5%88%86%e8%a1%a8%ef%bc%88%e4%b8%80%ef%bc%89","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/mysql\/%e8%81%8a%e8%81%8a-sharding-jdbc-%e5%88%86%e5%ba%93%e5%88%86%e8%a1%a8%ef%bc%88%e4%b8%80%ef%bc%89\/","title":{"rendered":"\u804a\u804a Sharding-JDBC \u5206\u5e93\u5206\u8868\uff08\u4e00\uff09"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding: 0 10px;line-height: 1.6;word-spacing: 0px;letter-spacing: 0px;word-break: break-word;word-wrap: break-word;text-align: left;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &#39;PingFang SC&#39;, Cambria, Cochin, Georgia, Times, &#39;Times New Roman&#39;, serif;\">\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5927\u5bb6\u597d\uff0c\u6211\u662f\u4e00\u5b89\uff0c\u4eca\u5929\u4ecb\u7ecd\u4e00\u4e0b Sharding-JDBC \u5b9e\u73b0\u5206\u5e93\u5206\u8868\u7684\u8be6\u7ec6\u914d\u7f6e\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 20px;line-height: 1.4;padding-top: 10px;margin: 10px 0 5px;\"><span style=\"display: none;\"><\/span><span style=\"color: #515151;font-weight: 700;font-size: 1.0em;padding-left: 20px;border-left: 3px solid #f9bf45;\">\u5206\u5e93\u5206\u8868\u5e26\u6765\u7684\u95ee\u9898<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u4ece\u5355\u4e00\u8868\u3001\u5355\u4e00\u5e93\u5207\u5206\u6210\u591a\u5e93\u3001\u591a\u8868\u5bf9\u4e8e\u6027\u80fd\u7684\u63d0\u5347\u662f\u5fc5\u7136\u7684\uff0c\u4f46\u662f\u540c\u65f6\u4e5f\u5e26\u6765\u4e86\u4e00\u4e9b\u95ee\u9898:<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u5206\u5e03\u5f0f\u4e8b\u52a1\u95ee\u9898:<\/p>\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 10px;padding: 20px;margin-bottom: 20px;margin-top: 20px;\">\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u7531\u4e8e\u5782\u76f4\u5206\u5e93\u3001\u6c34\u5e73\u5206\u5e93\uff0c\u5c06\u6570\u636e\u5206\u644a\u5728\u4e0d\u540c\u5e93\u4e2d\uff0c\u751a\u81f3\u4e0d\u540c\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u52bf\u5fc5\u5e26\u6765\u4e86\u5206\u5e03\u5f0f\u4e8b\u52a1\u7684\u95ee\u9898\u3002\u5bf9\u4e8e\u5355\u5e93\u5355\u8868\u7684\u4e8b\u52a1\u5f88\u597d\u63a7\u5236\uff0c\u5206\u5e03\u5f0f\u4e8b\u52a1\u7684\u63a7\u5236\u5374\u662f\u975e\u5e38\u5934\u75bc\uff0c\u4f46\u662f\u597d\u5728\u73b0\u5728\u5df2\u7ecf\u6709\u6210\u719f\u7684\u89e3\u51b3\u65b9\u6848,\u8fd9\u4e2a\u540e\u7eed\u518d\u4ecb\u7ecd\u3002<\/p>\n<\/blockquote>\n<\/blockquote>\n<\/section>\n<\/li>\n<\/ul>\n<hr data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"height: 1px;border-right: none;border-bottom: none;border-left: none;border-top: 1px solid rgb(249, 191, 69);margin: 20px 0px;\"  \/>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u8de8\u8282\u70b9\u5173\u8054 join \u95ee\u9898<\/p>\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 10px;padding: 20px;margin-bottom: 20px;margin-top: 20px;\">\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5728\u5207\u5206\u4e4b\u524d\u5173\u8054\u67e5\u8be2\u975e\u5e38\u7b80\u5355\uff0c\u76f4\u63a5 SQL JOIN \u4fbf\u80fd\u89e3\u51b3\uff0c\u4f46\u662f\u5207\u5206\u4e4b\u540e\u6570\u636e\u5206\u644a\u5728\u4e0d\u540c\u7684\u8282\u70b9\u4e0a\uff0c\u6b64\u65f6 JOIN \u5c31\u6bd4\u8f83\u9ebb\u70e6\u4e86\uff0c\u56e0\u6b64\u5207\u5206\u4e4b\u540e\u5c3d\u91cf\u907f\u514d JOIN\uff0c\u89e3\u51b3\u8fd9\u4e00\u95ee\u9898\u7684\u6709\u4e9b\u65b9\u6cd5\uff1a<\/p>\n<\/blockquote>\n<\/blockquote>\n<\/section>\n<\/li>\n<\/ul>\n<ol data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u5168\u5c40\u8868<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u8fd9\u79cd\u5f88\u597d\u7406\u89e3\uff0c\u5bf9\u4e8e\u4e00\u4e9b\u5168\u5c40\u9700\u8981\u5173\u8054\u7684\u8868\u53ef\u4ee5\u5728\u6bcf\u4e2a\u6570\u636e\u8282\u70b9\u4e0a\u90fd\u5b58\u50a8\u4e00\u4efd\uff0c\u4e00\u822c\u662f\u4e00\u4e9b\u6570\u636e\u5b57\u5178\u8868(\u5168\u5c40\u8868\u5728 Sharding-JDBC \u79f0\u4e4b\u4e3a\u5e7f\u64ad\u8868)<\/p>\n<ol start=\"2\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u5b57\u6bb5\u5197\u4f59<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u8fd9\u662f\u4e00\u79cd\u5178\u578b\u7684\u53cd\u8303\u5f0f\u8bbe\u8ba1\uff0c\u4e3a\u4e86\u907f\u514d\u5173\u8054 JOIN\uff0c\u53ef\u4ee5\u5c06\u4e00\u4e9b\u5197\u4f59\u5b57\u6bb5\u4fdd\u5b58\uff0c\u6bd4\u5982\u8ba2\u5355\u8868\u4fdd\u5b58 userId \u65f6\uff0c\u53ef\u4ee5\u5c06 userName \u4e5f\u4e00\u5e76\u4fdd\u5b58\uff0c\u8fd9\u6837\u5c31\u907f\u514d\u4e86\u548c User \u8868\u7684\u5173\u8054 JOIN \u4e86(\u5b57\u6bb5\u5197\u4f59\u8fd9\u79cd\u65b9\u6848\u5b58\u5728\u6570\u636e\u4e00\u81f4\u6027\u95ee\u9898)<\/p>\n<ol start=\"3\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u6570\u636e\u7ec4\u88c5<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u8fd9\u79cd\u8fd8\u662f\u6bd4\u8f83\u597d\u7406\u89e3\u7684\uff0c\u76f4\u63a5\u4e0d\u4f7f\u7528 JOIN \u5173\u8054\uff0c\u5206\u4e24\u6b21\u67e5\u8be2\uff0c\u4ece\u7b2c\u4e00\u6b21\u7684\u7ed3\u679c\u96c6\u4e2d\u627e\u51fa\u5173\u8054\u6570\u636e\u7684\u552f\u4e00\u6807\u8bc6\uff0c\u7136\u540e\u518d\u6b21\u53bb\u67e5\u8be2\uff0c\u6700\u540e\u5bf9\u5f97\u5230\u7684\u6570\u636e\u8fdb\u884c\u7ec4\u88c5(\u9700\u8981\u8fdb\u884c\u624b\u52a8\u7ec4\u88c5\uff0c\u6570\u636e\u5f88\u5927\u7684\u60c5\u51b5\u5bf9 CPU\u3001\u5185\u5b58\u6709\u4e00\u5b9a\u7684\u8981\u6c42)<\/p>\n<ol start=\"4\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u7ed1\u5b9a\u8868<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5bf9\u4e8e\u76f8\u4e92\u5173\u8054\u7684\u6570\u636e\u8282\u70b9\uff0c\u901a\u8fc7\u5206\u7247\u89c4\u5219\u5c06\u5176\u5207\u5206\u5230\u540c\u4e00\u4e2a\u5e93\u4e2d\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 SQL \u7684 JOIN \u8fdb\u884c\u5173\u8054\u67e5\u8be2(Sharding-JDBC \u4e2d\u79f0\u4e4b\u4e3a\u7ed1\u5b9a\u8868\uff0c\u6bd4\u5982\u8ba2\u5355\u8868\u548c\u7528\u6237\u8868\u7684\u7ed1\u5b9a)<\/p>\n<hr data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"height: 1px;border-right: none;border-bottom: none;border-left: none;border-top: 1px solid rgb(249, 191, 69);margin: 20px 0px;\"  \/>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u8de8\u8282\u70b9\u5206\u9875\u3001\u6392\u5e8f\u3001\u51fd\u6570\u95ee\u9898<\/p>\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 10px;padding: 20px;margin-bottom: 20px;margin-top: 20px;\">\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5bf9\u4e8e\u8de8\u6570\u636e\u8282\u70b9\u8fdb\u884c\u5206\u9875\u3001\u6392\u5e8f\u6216\u8005\u4e00\u4e9b\u805a\u5408\u51fd\u6570\uff0c\u7b5b\u9009\u51fa\u6765\u7684\u4ec5\u4ec5\u662f\u9488\u5bf9\u5f53\u524d\u8282\u70b9\uff0c\u6bd4\u5982\u6392\u5e8f\uff0c\u4ec5\u4ec5\u80fd\u591f\u4fdd\u8bc1\u5728\u5355\u4e00\u6570\u636e\u8282\u70b9\u4e0a\u662f\u6709\u5e8f\uff0c\u5e76\u4e0d\u80fd\u4fdd\u8bc1\u5728\u6240\u6709\u8282\u70b9\u4e0a\u90fd\u662f\u6709\u5e8f\u7684\uff0c\u9700\u8981\u5c06\u5404\u4e2a\u8282\u70b9\u7684\u6570\u636e\u7684\u8fdb\u884c\u6c47\u603b\u91cd\u65b0\u624b\u52a8\u6392\u5e8f\u3002<\/p>\n<\/blockquote>\n<\/blockquote>\n<\/section>\n<\/li>\n<\/ul>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin: 0;margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"1.259351620947631\" data-type=\"png\" data-w=\"401\" style=\"margin: 0px auto 15px;max-width: 100%;width: 100%;border-radius: 5px;display: block;height: auto !important;\"  data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151940895.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"1.259351620947631\" data-type=\"png\" data-w=\"401\" style=\"margin: 0px auto 15px;max-width: 100%;width: 100%;border-radius: 5px;display: block;height: auto !important;\"  src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151940895.png\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">Sharding-JDBC \u6b63\u662f \u6309\u7167\u4e0a\u8ff0\u6d41\u7a0b\u8fdb\u884c\u5206\u9875\u3001\u6392\u5e8f\u3001\u805a\u5408<\/p>\n<hr data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"height: 1px;border-right: none;border-bottom: none;border-left: none;border-top: 1px solid rgb(249, 191, 69);margin: 20px 0px;\"  \/>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u5168\u5c40\u4e3b\u952e\u907f\u91cd\u95ee\u9898<\/p>\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 10px;padding: 20px;margin-bottom: 20px;margin-top: 20px;\">\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5355\u5e93\u5355\u8868\u4e00\u822c\u90fd\u662f\u4f7f\u7528\u7684\u81ea\u589e\u4e3b\u952e\uff0c\u4f46\u662f\u5728\u5207\u5206\u4e4b\u540e\u6bcf\u4e2a\u81ea\u589e\u4e3b\u952e\u5c06\u65e0\u6cd5\u4f7f\u7528\uff0c\u56e0\u4e3a\u8fd9\u6837\u4f1a\u5bfc\u81f4\u6570\u636e\u4e3b\u952e\u91cd\u590d\uff0c\u56e0\u6b64\u5fc5\u987b\u91cd\u65b0\u8bbe\u8ba1\u4e3b\u952e<\/p>\n<\/blockquote>\n<\/blockquote>\n<\/section>\n<\/li>\n<\/ul>\n<ol data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">UUID<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">UUID \u5e94\u8be5\u662f\u5927\u5bb6\u6700\u4e3a\u719f\u6089\u7684\u4e00\u79cd\u65b9\u6848\uff0c\u4f18\u70b9\u975e\u5e38\u660e\u663e\u672c\u5730\u751f\u6210\uff0c\u6027\u80fd\u9ad8\uff0c\u7f3a\u70b9\u4e5f\u5f88\u660e\u663e\uff0c\u592a\u957f\u4e86\u5b58\u50a8\u8017\u7a7a\u95f4\uff0c\u67e5\u8be2\u4e5f\u975e\u5e38\u8017\u6027\u80fd\uff0c\u53e6\u5916 UUID \u7684\u65e0\u5e8f\u6027\u5c06\u4f1a\u5bfc\u81f4 InnoDB \u4e0b\u7684\u6570\u636e\u4f4d\u7f6e\u53d8\u52a8<\/p>\n<ol start=\"2\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">Snowflake<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">Twitter \u5f00\u6e90\u7684\u7531 64 \u4f4d\u6574\u6570\u7ec4\u6210\u5206\u5e03\u5f0f ID\uff0c\u6027\u80fd\u8f83\u9ad8\uff0c\u5e76\u4e14\u5728\u5355\u673a\u4e0a\u9012\u589e<\/p>\n<ol start=\"3\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">UidGenerator<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">UidGenerator \u662f\u767e\u5ea6\u5f00\u6e90\u7684\u5206\u5e03\u5f0f ID \u751f\u6210\u5668\uff0c\u5176\u57fa\u4e8e\u96ea\u82b1\u7b97\u6cd5\u5b9e\u73b0\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\"><span style=\"letter-spacing: 0px;\">\u5177\u4f53\u53c2\u8003\uff1a<\/span><span style=\"letter-spacing: 0px;\">https:\/\/github.com\/baidu\/uid-<\/span><span style=\"letter-spacing: 0px;\">generator\/blob\/master\/README.zh_cn.md<\/span><\/p>\n<ol start=\"4\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">Leaf<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">Leaf \u662f\u7f8e\u56e2\u5f00\u6e90\u7684\u5206\u5e03\u5f0f ID \u751f\u6210\u5668\uff0c\u80fd\u4fdd\u8bc1\u5168\u5c40\u552f\u4e00\uff0c\u8d8b\u52bf\u9012\u589e\uff0c\u4f46\u9700\u8981\u4f9d\u8d56\u5173\u7cfb\u6570\u636e\u5e93\u3001Zookeeper \u7b49\u4e2d\u95f4\u4ef6\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5177\u4f53\u53c2\u8003\uff1ahttps:\/\/tech.meituan.com\/2017\/04\/21\/mt-leaf.html<\/p>\n<hr data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"height: 1px;border-right: none;border-bottom: none;border-left: none;border-top: 1px solid rgb(249, 191, 69);margin: 20px 0px;\"  \/>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u6570\u636e\u8fc1\u79fb\u3001\u6269\u5bb9\u95ee\u9898<\/p>\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 10px;padding: 20px;margin-bottom: 20px;margin-top: 20px;\">\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5f53\u4e1a\u52a1\u9ad8\u901f\u53d1\u5c55\uff0c\u9762\u4e34\u6027\u80fd\u548c\u5b58\u50a8\u7684\u74f6\u9888\u65f6\uff0c\u624d\u4f1a\u8003\u8651\u5206\u7247\u8bbe\u8ba1\uff0c\u6b64\u65f6\u5c31\u4e0d\u53ef\u907f\u514d\u7684\u9700\u8981\u8003\u8651\u5386\u53f2\u6570\u636e\u8fc1\u79fb\u7684\u95ee\u9898\u3002\u4e00\u822c\u505a\u6cd5\u662f\u5148\u8bfb\u51fa\u5386\u53f2\u6570\u636e\uff0c\u7136\u540e\u6309\u6307\u5b9a\u7684\u5206\u7247\u89c4\u5219\u518d\u5c06\u6570\u636e\u5199\u5165\u5230\u5404\u4e2a\u5206\u7247\u8282\u70b9\u4e2d\u3002\u6b64\u5916\u8fd8\u9700\u8981\u6839\u636e\u5f53\u524d\u7684\u6570\u636e\u91cf\u548c QPS\uff0c\u4ee5\u53ca\u4e1a\u52a1\u53d1\u5c55\u7684\u901f\u5ea6\uff0c\u8fdb\u884c\u5bb9\u91cf\u89c4\u5212\uff0c\u63a8\u7b97\u51fa\u5927\u6982\u9700\u8981\u591a\u5c11\u5206\u7247\u3002<br  \/>\u5982\u679c\u91c7\u7528\u6570\u503c\u8303\u56f4\u5206\u7247\uff0c\u53ea\u9700\u8981\u6dfb\u52a0\u8282\u70b9\u5c31\u53ef\u4ee5\u8fdb\u884c\u6269\u5bb9\u4e86\uff0c\u4e0d\u9700\u8981\u5bf9\u5206\u7247\u6570\u636e\u8fc1\u79fb\u3002\u5982\u679c\u91c7\u7528\u7684\u662f\u6570\u503c\u53d6\u6a21\u5206\u7247\uff0c\u5219\u8003\u8651\u540e\u671f\u7684\u6269\u5bb9\u95ee\u9898\u5c31\u76f8\u5bf9\u6bd4\u8f83\u9ebb\u70e6\u3002<\/p>\n<\/blockquote>\n<\/blockquote>\n<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\"><strong style=\"font-weight: bold;color: black;\">\u5206\u5e93\u5206\u8868\u867d\u7136\u63d0\u5347\u4e86\u6027\u80fd\uff0c\u4f46\u662f\u5728\u5207\u5206\u8fc7\u7a0b\u4e2d\u4e00\u5b9a\u8981\u8003\u8651\u4e0a\u8ff0\u603b\u7ed3\u7684 5 \u79cd\u95ee\u9898<\/strong><\/p>\n<hr data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"height: 1px;border-right: none;border-bottom: none;border-left: none;border-top: 1px solid rgb(249, 191, 69);margin: 20px 0px;\"  \/>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 20px;line-height: 1.4;padding-top: 10px;margin: 10px 0 5px;\"><span style=\"display: none;\"><\/span><span style=\"color: #515151;font-weight: 700;font-size: 1.0em;padding-left: 20px;border-left: 3px solid #f9bf45;\">Sharding-JDBC \u4ecb\u7ecd<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5b98\u7f51\uff1ahttps:\/\/shardingsphere.apache.org<\/p>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-width: initial;border-style: none;border-color: initial;box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 10px;padding: 20px;margin-bottom: 20px;margin-top: 20px;\">\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">Sharding-JDBC \u662f\u5f53\u5f53\u7f51\u7814\u53d1\u7684\u5f00\u6e90\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u4e2d\u95f4\u4ef6\uff0c\u4ece 3.0 \u5f00\u59cb Sharding-JDBC \u88ab\u5305\u542b\u5728 Sharding-Sphere \u4e2d\uff0c\u4e4b\u540e\u8be5\u9879\u76ee\u8fdb\u5165\u8fdb\u5165 Apache \u5b75\u5316\u5668\uff0c4.0 \u7248\u672c\u4e4b\u540e\u7684\u7248\u672c\u4e3a Apache \u7248\u672c\u3002<\/p>\n<\/blockquote>\n<\/blockquote>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-width: initial;border-style: none;border-color: initial;box-shadow: rgba(0, 0, 0, 0.2) 1px 1px 10px;padding: 20px;margin-bottom: 20px;margin-top: 20px;\">\n<blockquote style=\"border-width: initial;border-style: none;border-color: initial;\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">ShardingSphere \u662f\u4e00\u5957\u5f00\u6e90\u7684\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u4e2d\u95f4\u4ef6\u89e3\u51b3\u65b9\u6848\u7ec4\u6210\u7684\u751f\u6001\u5708\uff0c\u7531 Sharding-JDBC\u3001Sharding-Proxy\u3001Sharding-Sidecar\uff08\u89c4\u5212\u4e2d\uff09\u7ec4\u6210\u3002<\/p>\n<\/blockquote>\n<\/blockquote>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u76ee\u524d\u6211\u4eec\u53ea\u9700\u8981\u5173\u6ce8 Sharding-JDBC\uff0c\u540e\u9762\u7684\u4e24\u79cd\u7ec4\u4ef6\u540e\u6587\u4ecb\u7ecd\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">Sharding-JDBC \u7684\u5b9a\u4f4d\u662f\u4e00\u6b3e\u8f7b\u91cf\u7ea7 JAVA \u6846\u67b6\uff0c\u57fa\u4e8e JDBC \u5b9e\u73b0\u5206\u5e93\u5206\u8868\uff0c\u901a\u8fc7 Sharding-JDBC \u53ef\u4ee5\u900f\u660e\u7684\u8bbf\u95ee\u5df2\u7ecf\u7ecf\u8fc7\u5206\u5e93\u3001\u5206\u8868\u7684\u6570\u636e\u6e90\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">Sharding-JDBC \u7684\u7279\u6027\u5982\u4e0b\uff1a<\/p>\n<ol data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u9002\u7528\u4e8e\u4efb\u4f55\u57fa\u4e8e Java \u7684 ORM \u6846\u67b6\uff0c\u5982\uff1aHibernate, Mybatis, Spring JDBC Template \u6216\u76f4\u63a5\u4f7f\u7528 JDBC\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u57fa\u4e8e\u4efb\u4f55\u7b2c\u4e09\u65b9\u7684\u6570\u636e\u5e93\u8fde\u63a5\u6c60\uff0c\u5982\uff1aDBCP, C3P0, BoneCP, Druid, HikariCP \u7b49\u3002<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u652f\u6301\u4efb\u610f\u5b9e\u73b0 JDBC \u89c4\u8303\u7684\u6570\u636e\u5e93\u3002\u76ee\u524d\u652f\u6301 MySQL\uff0cOracle\uff0cSQLServer \u548c PostgreSQL\u3002<\/section>\n<\/li>\n<\/ol>\n<hr data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"height: 1px;border-right: none;border-bottom: none;border-left: none;border-top: 1px solid rgb(249, 191, 69);margin: 20px 0px;\"  \/>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 20px;line-height: 1.4;padding-top: 10px;margin: 10px 0 5px;\"><span style=\"display: none;\"><\/span><span style=\"color: #515151;font-weight: 700;font-size: 1.0em;padding-left: 20px;border-left: 3px solid #f9bf45;\">Sharding-JDBC \u4e2d\u7684\u4e00\u4e9b\u6982\u5ff5<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5728\u4ecb\u7ecd Sharding-JDBC \u5b9e\u6218\u4e4b\u524d\u9700\u8981\u4e86\u89e3\u5176\u4e2d\u7684\u4e00\u4e9b\u6982\u5ff5\uff0c\u5982\u4e0b\uff1a<\/p>\n<ol data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u903b\u8f91\u8868<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5728\u5bf9\u8868\u8fdb\u884c\u5206\u7247\u540e\uff0c\u4e00\u5f20\u8868\u5206\u6210\u4e86 n \u4e2a\u8868\uff0c\u6bd4\u5982\u8ba2\u5355\u8868 t_order \u5206\u6210\u5982\u4e0b\u4e09\u5f20\u8868\uff1at_order_1\uff0ct_order_2\uff0ct_order_3\u3002\u6b64\u65f6\u8ba2\u5355\u8868\u7684\u903b\u8f91\u8868\u5c31\u662f t_order\uff0cSharding-JDBC \u5728\u8fdb\u884c\u5206\u7247\u89c4\u5219\u914d\u7f6e\u65f6\u9488\u5bf9\u7684\u5c31\u662f\u8fd9\u5f20\u903b\u8f91\u8868\u3002<\/p>\n<ol start=\"2\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u771f\u5b9e\u8868<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u4e0a\u8ff0 t_ordr_1\uff0ct_order_2\uff0ct_order_3 \u79f0\u4e4b\u4e3a \u771f\u5b9e\u8868\u3002<\/p>\n<ol start=\"3\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u6570\u636e\u8282\u70b9<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u6570\u636e\u5206\u7247\u7684\u6700\u5c0f\u5355\u5143\uff0c\u7531\u6570\u636e\u6e90\u540d\u79f0\u548c\u8868\u540d\u79f0\u7ec4\u6210\uff0c\u6bd4\u5982\uff1ads1.t_order_1\u3002<\/p>\n<ol start=\"4\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u5206\u7247\u952e<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u7528\u4e8e\u5206\u7247\u7684\u6570\u636e\u5e93\u5b57\u6bb5\uff0c\u662f\u5c06\u6570\u636e\u5e93(\u8868)\u6c34\u5e73\u62c6\u5206\u7684\u5173\u952e\u5b57\u6bb5\u3002\u4f8b\uff1a\u6309\u8ba2\u5355\u8868\u4e2d\u7684\u8ba2\u5355\u4e3b\u952e\u7684\u5c3e\u6570\u53d6\u6a21\u5206\u7247\uff0c\u5219\u8ba2\u5355\u4e3b\u952e\u4e3a\u5206\u7247\u5b57\u6bb5\u3002SQL \u4e2d\u5982\u679c\u65e0\u5206\u7247\u5b57\u6bb5\uff0c\u5c06\u6267\u884c\u5168\u8def\u7531\uff0c\u6027\u80fd\u8f83\u5dee\u3002\u9664\u4e86\u5bf9\u5355\u5206\u7247\u5b57\u6bb5\u7684\u652f\u6301\uff0cSharding- Jdbc \u4e5f\u652f\u6301\u6839\u636e\u591a\u4e2a\u5b57\u6bb5\u8fdb\u884c\u5206\u7247\u3002<\/p>\n<ol start=\"5\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u5206\u7247\u7b97\u6cd5<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u901a\u8fc7\u5206\u7247\u7b97\u6cd5\u5c06\u6570\u636e\u5206\u7247\uff0c\u652f\u6301\u901a\u8fc7 = \u3001 BETWEEN \u548c IN \u5206\u7247\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5206\u7247\u7b97\u6cd5\u9700\u8981\u5e94\u7528\u65b9\u5f00\u53d1\u8005\u81ea\u884c\u5b9e\u73b0\uff0c\u53ef\u5b9e\u73b0\u7684\u7075\u6d3b\u5ea6\u975e\u5e38\u9ad8\u3002\u5305\u62ec\uff1a\u7cbe\u786e\u5206\u7247\u7b97\u6cd5 \u3001\u8303\u56f4\u5206\u7247\u7b97\u6cd5 \uff0c\u590d\u5408\u5206\u7247\u7b97\u6cd5 \u7b49\u3002\u4f8b\u5982\uff1awhere order_id = ? \u5c06\u91c7\u7528\u7cbe\u786e\u5206\u7247\u7b97\u6cd5\uff0cwhere order_id in (?,?,?)\u5c06\u91c7\u7528\u7cbe\u786e\u5206\u7247\u7b97\u6cd5\uff0cwhere order_id BETWEEN ? and ? \u5c06\u91c7\u7528\u8303\u56f4\u5206\u7247\u7b97\u6cd5\uff0c\u590d\u5408\u5206\u7247\u7b97\u6cd5\u7528\u4e8e\u5206\u7247\u952e\u6709\u591a\u4e2a\u590d\u6742\u60c5\u51b5\u3002<\/p>\n<ol start=\"6\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u5206\u7247\u7b56\u7565<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5305\u542b\u5206\u7247\u952e\u548c\u5206\u7247\u7b97\u6cd5\uff0c\u7531\u4e8e\u5206\u7247\u7b97\u6cd5\u7684\u72ec\u7acb\u6027\uff0c\u5c06\u5176\u72ec\u7acb\u62bd\u79bb\u3002\u771f\u6b63\u53ef\u7528\u4e8e\u5206\u7247\u64cd\u4f5c\u7684\u662f\u5206\u7247\u952e + \u5206\u7247\u7b97\u6cd5\uff0c\u4e5f \u5c31\u662f\u5206\u7247\u7b56\u7565\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5185\u7f6e\u7684\u5206\u7247\u7b56\u7565\u5927\u81f4\u53ef\u5206\u4e3a\u5c3e\u6570\u53d6\u6a21\u3001\u54c8\u5e0c\u3001\u8303\u56f4\u3001\u6807\u7b7e\u3001\u65f6\u95f4\u7b49\u3002\u7531\u7528\u6237\u65b9\u914d\u7f6e\u7684\u5206\u7247\u7b56\u7565\u5219\u66f4\u52a0\u7075\u6d3b\uff0c\u5e38\u7528\u7684\u4f7f\u7528\u884c\u8868\u8fbe\u5f0f\u914d\u7f6e\u5206\u7247\u7b56\u7565\uff0c\u5b83\u91c7\u7528 Groovy \u8868\u8fbe\u5f0f\u8868\u793a\uff0c\u5982: t<em style=\"font-style: italic;color: black;\">user<\/em>$-&gt;{u_id % 8} \u8868\u793a t_user \u8868\u6839\u636e u_id \u6a21 8\uff0c\u800c\u5206\u6210 8 \u5f20\u8868\uff0c\u8868\u540d\u79f0\u4e3a t_user_0 \u5230 t_user_7 \u3002<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u6807\u51c6\u5206\u7247\u7b56\u7565<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u6807\u51c6\u5206\u7247\u7b56\u7565\u9002\u7528\u4e8e\u5355\u5206\u7247\u952e\uff0c\u6b64\u7b56\u7565\u652f\u6301 PreciseShardingAlgorithm \u548c RangeShardingAlgorithm \u4e24\u4e2a\u5206\u7247\u7b97\u6cd5\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5176\u4e2d PreciseShardingAlgorithm \u662f\u5fc5\u9009\u7684\uff0c\u7528\u4e8e\u5904\u7406 = \u548c IN \u7684\u5206\u7247\u3002RangeShardingAlgorithm \u662f\u53ef\u9009\u7684\uff0c\u7528\u4e8e\u5904\u7406 BETWEEN AND\uff0c &gt;\uff0c &lt;\uff0c&gt;=\uff0c&lt;= \u6761\u4ef6\u5206\u7247\uff0c\u5982\u679c\u4e0d\u914d\u7f6e RangeShardingAlgorithm\uff0cSQL \u4e2d\u7684\u6761\u4ef6\u7b49\u5c06\u6309\u7167\u5168\u5e93\u8def\u7531\u5904\u7406\u3002<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u590d\u5408\u5206\u7247\u7b56\u7565<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u590d\u5408\u5206\u7247\u7b56\u7565\uff0c\u540c\u6837\u652f\u6301\u5bf9 SQL \u8bed\u53e5\u4e2d\u7684 =\uff0c&gt;\uff0c &lt;\uff0c &gt;=\uff0c &lt;=\uff0cIN \u548c BETWEEN AND \u7684\u5206\u7247\u64cd\u4f5c\u3002\u4e0d\u540c\u7684\u662f\u5b83\u652f\u6301\u591a\u5206\u7247\u952e\uff0c\u5177\u4f53\u5206\u914d\u7247\u7ec6\u8282\u5b8c\u5168\u7531\u5e94\u7528\u5f00\u53d1\u8005\u5b9e\u73b0\u3002<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u884c\u8868\u8fbe\u5f0f\u5206\u7247\u7b56\u7565<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u884c\u8868\u8fbe\u5f0f\u5206\u7247\u7b56\u7565\uff0c\u652f\u6301\u5bf9 SQL \u8bed\u53e5\u4e2d\u7684 = \u548c IN \u7684\u5206\u7247\u64cd\u4f5c\uff0c\u4f46\u53ea\u652f\u6301\u5355\u5206\u7247\u952e\u3002\u8fd9\u79cd\u7b56\u7565\u901a\u5e38\u7528\u4e8e\u7b80\u5355\u7684\u5206\u7247\uff0c\u4e0d\u9700\u8981\u81ea\u5b9a\u4e49\u5206\u7247\u7b97\u6cd5\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u63a5\u7740\u5199\u89c4\u5219\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">t<em style=\"font-style: italic;color: black;\">order<\/em>$-&gt;{t_order_id % 4} \u4ee3\u8868 t_order \u5bf9\u5176\u5b57\u6bb5 t_order_id \u53d6\u6a21\uff0c\u62c6\u5206\u6210 4 \u5f20\u8868\uff0c\u800c\u8868\u540d\u5206\u522b\u662f t_order_0 \u5230 t_order_3\u3002<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: disc;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">Hint \u5206\u7247\u7b56\u7565<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">Hint \u5206\u7247\u7b56\u7565\uff0c\u5bf9\u5e94\u4e0a\u8fb9\u7684 Hint \u5206\u7247\u7b97\u6cd5\uff0c\u901a\u8fc7\u6307\u5b9a\u5206\u7247\u5065\u800c\u975e\u4ece SQL \u4e2d\u63d0\u53d6\u5206\u7247\u5065\u7684\u65b9\u5f0f\u8fdb\u884c\u5206\u7247\u7684\u7b56\u7565\u3002<\/p>\n<ol start=\"7\" data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;list-style-type: decimal;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;text-align: left;color: rgb(1,1,1);font-weight: 500;\">\u5206\u5e03\u5f0f\u4e3b\u952e\u751f\u6210\u7b56\u7565<\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u901a\u8fc7\u5728\u5ba2\u6237\u7aef\u751f\u6210\u81ea\u589e\u4e3b\u952e\u66ff\u6362\u4ee5\u6570\u636e\u5e93\u539f\u751f\u81ea\u589e\u4e3b\u952e\u7684\u65b9\u5f0f\uff0c\u505a\u5230\u5206\u5e03\u5f0f\u4e3b\u952e\u65e0\u91cd\u590d\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\"><span style=\"color: rgb(58, 58, 58);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;font-size: 16px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: left;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;display: inline !important;float: none;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/span><span data-darkmode-color-16559522298940=\"rgb(154, 154, 154)\" data-darkmode-original-color-16559522298940=\"#fff|rgb(53, 53, 53)|rgb(154, 154, 154)\" data-darkmode-bgcolor-16559522298940=\"rgb(25, 25, 25)\" data-darkmode-original-bgcolor-16559522298940=\"#fff|rgb(255, 255, 255)\" data-style=\"color: rgb(154, 154, 154); font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;\" class=\"js_darkmode__1\" style=\"margin: 0px;padding: 0px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;outline: 0px;max-width: 100%;background-color: rgb(255, 255, 255);color: rgb(154, 154, 154);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;text-align: start;float: none;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;display: inline !important;\">\u6587\u7ae0\u6765\u6e90\u4e8e<\/span><span class=\"js_darkmode__2\" data-darkmode-color-16559522298940=\"rgb(154, 154, 154)\" data-darkmode-original-color-16559522298940=\"#fff|rgb(53, 53, 53)|rgb(154, 154, 154)\" data-darkmode-bgcolor-16559522298940=\"rgb(25, 25, 25)\" data-darkmode-original-bgcolor-16559522298940=\"#fff|rgb(255, 255, 255)\" data-style=\"margin: 0px; padding: 0px; color: rgb(154, 154, 154); font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" style=\"margin: 0px;padding: 0px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;outline: 0px;max-width: 100%;background-color: rgb(255, 255, 255);color: rgb(154, 154, 154);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;text-align: start;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u7801\u733f\u6280\u672f\u4e13\u680f<\/span><span data-darkmode-color-16559522298940=\"rgb(154, 154, 154)\" data-darkmode-original-color-16559522298940=\"#fff|rgb(53, 53, 53)|rgb(154, 154, 154)\" data-darkmode-bgcolor-16559522298940=\"rgb(25, 25, 25)\" data-darkmode-original-bgcolor-16559522298940=\"#fff|rgb(255, 255, 255)\" data-style=\"color: rgb(154, 154, 154); font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; float: none; display: inline !important;\" class=\"js_darkmode__3\" style=\"margin: 0px;padding: 0px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;outline: 0px;max-width: 100%;background-color: rgb(255, 255, 255);color: rgb(154, 154, 154);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;text-align: start;float: none;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;display: inline !important;\">\uff0c\u4f5c\u8005<\/span><span class=\"js_darkmode__4\" data-darkmode-color-16559522298940=\"rgb(154, 154, 154)\" data-darkmode-original-color-16559522298940=\"#fff|rgb(53, 53, 53)|rgb(154, 154, 154)\" data-darkmode-bgcolor-16559522298940=\"rgb(25, 25, 25)\" data-darkmode-original-bgcolor-16559522298940=\"#fff|rgb(255, 255, 255)\" data-style=\"margin: 0px; padding: 0px; color: rgb(154, 154, 154); font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;\" style=\"margin: 0px;padding: 0px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-indent: 0px;text-transform: none;widows: 2;word-spacing: 0px;-webkit-text-stroke-width: 0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;outline: 0px;max-width: 100%;background-color: rgb(255, 255, 255);color: rgb(154, 154, 154);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 14px;text-align: start;visibility: visible;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u4e0d\u624d\u9648\u67d0<\/span><\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;padding: 0px;font-weight: bold;color: black;font-size: 20px;line-height: 1.4;padding-top: 10px;margin: 10px 0 5px;\"><span style=\"display: none;\"><\/span><span style=\"color: #515151;font-weight: 700;font-size: 1.0em;padding-left: 20px;border-left: 3px solid #f9bf45;\">\u6700\u540e\u8bf4\u4e00\u53e5\uff08\u522b\u767d\u5ad6\uff0c\u6c42\u5173\u6ce8\uff09<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\">\u5982\u679c\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u6216\u8005\u6709\u6240\u542f\u53d1\u7684\u8bdd\uff0c\u5e2e\u5fd9\u70b9\u8d5e\u3001\u5728\u770b\u3001\u8f6c\u53d1\u3001\u6536\u85cf\uff0c\u4f60\u7684\u652f\u6301\u5c31\u662f\u6211\u575a\u6301\u4e0b\u53bb\u7684\u6700\u5927\u52a8\u529b\uff01\u4e0b\u7bc7\u8fdb\u5165 Sharding-JDBC \u5b9e\u6218<\/p>\n<section class=\"mp_profile_iframe_wrp\"><mpprofile class=\"custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-id=\"Mzg5MzgxMTIyOQ==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/QzI3807PeUlUKxuueCHNuNOXehciaM7OXnvr0pprJIAVYOs3hiaYh5JLyrcShyLJQ8iaqjyRPJPf1Pz4v4T6j1Fxw\/0?wx_fmt=png\" data-nickname=\"\u4e00\u5b89\u672a\u6765\" data-alias=\"\" data-signature=\"\u81f4\u529b\u4e8ejava\uff0c\u5927\u6570\u636e\uff1b\u5fc3\u5f97\u4ea4\u6d41\uff0c\u6280\u672f\u5206\u4eab\uff1b\" data-from=\"0\"><\/mpprofile><\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;margin: 0 0 20px;padding: 0;line-height: 1.8em;color: #3a3a3a;\"><br  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u4e00\u5b89\u672a\u6765              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u6211\u662f\u4e00\u5b89\uff0c\u4eca\u5929\u4ecb\u7ecd\u4e00\u4e0b Sharding-JDBC \u5b9e\u73b0\u5206\u5e93\u5206\u8868\u7684\u8be6\u7ec6\u914d\u7f6e\u3002 \u5206\u5e93\u5206\u8868\u5e26\u6765\u7684\u95ee\u9898 \u4ece\u5355\u4e00\u8868\u3001\u5355\u4e00\u5e93\u5207\u5206\u6210\u591a &#8230;<\/p>\n","protected":false},"author":1,"featured_media":2345,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[3],"tags":[],"class_list":["post-2348","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mysql"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151933439-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151940895.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151933439-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151933439-1024x436.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151940895.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151933439-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151933439-1024x436.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151933439.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151940895.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/06\/20230627151940895.png","id":"image1"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"MySQL","post_date":"2023-06-27","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":323,"next_post_id":2451,"next_post_title":"\u9762\u8bd5\u5b98\uff1aMyBatis \u63d2\u4ef6\u6709\u4ec0\u4e48\u7528\u9014\uff1f\u8bf4\u8bf4\u5e95\u5c42\u539f\u7406\uff1f\u6211\u7adf\u7136\u4e0d\u4f1a\u3002\u3002","previous_post_id":2334,"previous_post_title":"Spring Boot + Mybatis Plus + ClickHouse \u8f7b\u677e\u5b9e\u73b0\u589e\u5220\u6539\u67e5\uff0c\u770b\u4e86\u5fc5\u61c2\uff01","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2348"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2348\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/2345"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}