{"id":255746,"date":"2022-11-07T08:39:43","date_gmt":"2022-11-07T00:39:43","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=255746"},"modified":"2022-10-23T09:40:34","modified_gmt":"2022-10-23T01:40:34","slug":"enhance-read-write-slowlly","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/enhance-read-write-slowlly.html","title":{"rendered":"\u5982\u4f55\u4f18\u5316\u4e1a\u52a1\u5355\u8868\u8bfb\u5199\u7f13\u6162"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5173\u7cfb\u578b\u6570\u636e\u5e93\u76ee\u524d\u5e02\u9762\u4e0a\u4e3b\u6d41\u65e0\u975e\u4e09\u79cd\uff1aMySQL\u3001Oracle\u3001SqlServer\uff0c\u7b14\u8005\u66f4\u503e\u5411\u4e8eMySQL\uff0c\u4e5f\u662f\u5f88\u591a\u65b0\u578b\u4f01\u4e1a\u5728\u7528\u7684\u4e00\u79cd\u6570\u636e\u5e93\uff0c\u56e0\u6b64\u672c\u7bc7\u6587\u7ae0\u4e5f\u5c06\u91cd\u70b9\u56f4\u7ed5MySQL\u5c55\u5f00\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u5728\u524d\u9762\u7684\u6587\u7ae0\u4e2d\u63a2\u8ba8\u4e86\u67b6\u6784\u4f18\u5316\u7684\u4e24\u79cd\u65b9\u6848\uff1a\u51b7\u70ed\u5206\u79bb\u3001\u67e5\u8be2\u5206\u79bb\u3002<\/p>\n \u67e5\u8be2\u5206\u79bb\u5176\u5b9e\u5c31\u662f\u5229\u7528\u4e86\u975e\u5173\u7cfb\u6570\u636e\u5e93\u7684\u9ad8\u6027\u80fd\uff0c\u4f46\u662f\u4e0d\u8db3\u4e4b\u5904\u4e5f\u5f88\u660e\u663e\uff1a\u5f53\u4e3b\u6570\u636e\u91cf\u8d8a\u6765\u8d8a\u591a\uff0c\u5199\u64cd\u4f5c\u7f13\u6162\uff1b\u8fd9\u79cd\u95ee\u9898\u5982\u4f55\u7834\u5c40\uff1f\u53ef\u89c1\u4efb\u4f55\u4e00\u79cd\u4f18\u5316\u65b9\u6848\u90fd\u4e0d\u662f\u6700\u7ec8\u7684\u94f6\u5f39\uff0c\u53ea\u6709\u4e0d\u65ad\u7684\u4f18\u5316\u6f14\u53d8<\/p>\n \u8fd9\u7bc7\u6587\u7ae0\u5c31\u6765\u4ecb\u7ecd\u4e00\u4e0b\u89e3\u51b3\u65b9\u6848\uff1a\u5206\u5e93\u5206\u8868\uff0c\u5c06\u56f4\u7ed5\u4ee5\u4e0b\u51e0\u70b9\u4ecb\u7ecd\uff1a<\/p>\n \u62c6\u5206\u540e\u7684\u5b58\u50a8\u9009\u578b\uff1f<\/strong><\/div>\n \u5728\u4ecb\u7ecd\u9009\u578b\u4e4b\u524d\u5148\u6765\u4ecb\u7ecd\u4e0b\u67b6\u6784\u80cc\u666f\uff0c\u7b14\u8005\u66fe\u7ecf\u505a\u8fc7\u7535\u5546\u7cfb\u7edf\u7684\u4f18\u5316\uff0c\u8be5\u7cfb\u7edf\u4e2d\u5305\u542b\u7684\u4e24\u4e2a\u4e3b\u4f53\uff1a<\/p>\n \u5bf9\u4e8e\u5982\u6b64\u91cf\u7ea7\u7684\u6570\u636e\uff0c\u5355\u5e93\u5355\u8868\u7684\u60c5\u51b5\u4e0b\uff0c\u65e0\u8bba\u662fIO\u8fd8\u662fCPU\u90fd\u625b\u4e0d\u4f4f\uff0c\u67b6\u6784\u4e0a\u7684\u4f18\u5316\u662f\u5fc5\u7136\u3002<\/p>\n \u7ecf\u8fc7\u4e86\u591a\u6b21\u63a2\u8ba8\u5c1d\u8bd5\uff0c\u6700\u7ec8\u9009\u62e9\u4e86\u5206\u5e93\u5206\u8868\u3002<\/p>\n \u8bf4\u5230\u5206\u5e93\u5206\u8868\u9996\u5148\u60f3\u5230\u7684\u5c31\u662f\u5b58\u50a8\u9009\u578b\uff0c\u5173\u4e8e\u6301\u4e45\u5c42\u7684\u9009\u578b\u4e3b\u6d41\u7684\u65e0\u975e\u6709\u5982\u4e0b\u51e0\u79cd\uff1a<\/p>\n 1. \u5173\u7cfb\u578b\u6570\u636e\u5e93<\/strong><\/span><\/div>\n \u5173\u7cfb\u578b\u6570\u636e\u5e93\u76ee\u524d\u5e02\u9762\u4e0a\u4e3b\u6d41\u65e0\u975e\u4e09\u79cd\uff1aMySQL\u3001Oracle\u3001SqlServer\uff0c\u7b14\u8005\u66f4\u503e\u5411\u4e8eMySQL\uff0c\u4e5f\u662f\u5f88\u591a\u65b0\u578b\u4f01\u4e1a\u5728\u7528\u7684\u4e00\u79cd\u6570\u636e\u5e93\uff0c\u56e0\u6b64\u672c\u7bc7\u6587\u7ae0\u4e5f\u5c06\u91cd\u70b9\u56f4\u7ed5MySQL\u5c55\u5f00<\/p>\n \u5728\u4efb\u4f55\u7cfb\u7edf\u4e2d\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7684\u5730\u4f4d\u90fd\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\uff0c\u5b83\u7684\u5f3a\u7ea6\u675f\u6027\u3001\u4e8b\u52a1\u7684\u63a7\u5236\u3001SQL\u8bed\u6cd5\u3001\u9501....\u8fd9\u4e9b\u529f\u80fd\u53ef\u8c13\u662f\u4e45\u7ecf\u8003\u9a8c\uff0c\u56e0\u6b64\u5728\u529f\u80fd\u4e0a MySQL \u80fd\u6ee1\u8db3\u6211\u4eec\u6240\u6709\u7684\u4e1a\u52a1\u9700\u6c42\u3002<\/p>\n 2. NoSQL<\/strong><\/span><\/div>\n \u8bf4\u5230NoSQL\uff0c\u7b2c\u4e00\u4e2a\u60f3\u5230\u5c31\u662fMongoDB \uff0c\u5b83\u7684\u5206\u7247\u529f\u80fd\u4ece\u5e76\u53d1\u6027\u548c\u6570\u636e\u91cf\u8fd9\u4e24\u4e2a\u89d2\u5ea6\u5df2\u7ecf\u80fd\u6ee1\u8db3\u4e00\u822c\u5927\u6570\u636e\u91cf\u7684\u9700\u6c42\uff0c\u4f46\u662f\u4ecd\u7136\u9700\u8981\u8003\u8651\u5982\u4e0b\u51e0\u70b9\uff1a<\/p>\n \u7ea6\u675f\u6027\uff1aMongoDB \u4e0d\u662f\u5173\u7cfb\u578b\u6570\u636e\u5e93\u800c\u662f\u6587\u6863\u578b\u6570\u636e\u5e93\uff0c\u5b83\u7684\u6bcf\u4e00\u884c\u8bb0\u5f55\u90fd\u662f\u4e00\u4e2a\u7ed3\u6784\u7075\u6d3b\u53ef\u53d8\u7684 JSON\uff0c\u6bd4\u5982\u5b58\u50a8\u975e\u5e38\u91cd\u8981\u7684\u8ba2\u5355\u6570\u636e\u65f6\uff0c\u6211\u4eec\u5c31\u4e0d\u80fd\u4f7f\u7528 MongoDB\uff0c\u56e0\u4e3a\u8ba2\u5355\u6570\u636e\u5fc5\u987b\u4f7f\u7528\u5f3a\u7ea6\u675f\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u8fdb\u884c\u5b58\u50a8\u3002 3. NewSQL<\/strong><\/span><\/div>\n NewSQL\u76ee\u524d\u6bd4\u8f83\u4e3b\u6d41\u5219\u662fTiDB\uff0c\u8be5\u6280\u672f\u6bd4\u8f83\u65b0\uff0c\u867d\u7136\u80fd\u591f\u6ee1\u8db3\u5927\u6570\u636e\u91cf\u7684\u5b58\u50a8\uff0c\u4f46\u662f\u5728\u9009\u62e9\u4e0a\u8fd8\u662f\u9700\u8981\u505a\u4e9b\u8003\u91cf\uff1a<\/p>\n \u719f\u6089\u7a0b\u5ea6\u8003\u91cf\uff1a\u5982\u679c\u4f60\u6240\u5728\u516c\u53f8\u67b6\u6784\u7ec4\u5bf9\u4e8eNewSQL\u6bd4\u8f83\u6570\u636e\u6216\u8005\u5df2\u7ecf\u6709\u5728\u4f7f\u7528\uff0c\u5219\u53ef\u4ee5\u9009\u62e9<\/p>\n \u7a33\u5b9a\u6027\u8003\u91cf\uff1a\u5173\u7cfb\u578b\u6570\u636e\u6bd5\u7adf\u662f\u4e45\u7ecf\u8003\u9a8c\uff0c\u5728\u7a33\u5b9a\u6027\u65b9\u9762\u80af\u5b9a\u662f\u6bd4\u8f83\u597d\uff0c\u4f46\u662fNewSQL\u7684\u7a33\u5b9a\u6027\u5374\u65e0\u6cd5\u53bb\u8003\u91cf\uff0c\u5efa\u8bae\u521d\u671f\u9636\u6bb5\u53ef\u4ee5\u5c06\u4e00\u4e9b\u4e0d\u592a\u91cd\u8981\u7684\u6570\u636e\u4f7f\u7528NewSQL\u5b58\u50a8<\/p>\n \u57fa\u4e8eMySQL\u7684\u5206\u5e93\u5206\u8868<\/strong><\/div>\n \u4ec0\u4e48\u662f\u5206\u8868\u5206\u5e93\uff1f\u5206\u8868\u662f\u5c06\u4e00\u4efd\u5927\u7684\u8868\u6570\u636e\u62c6\u5206\u5b58\u653e\u81f3\u591a\u4e2a\u7ed3\u6784\u4e00\u6837\u7684\u62c6\u5206\u8868\uff1b\u5206\u5e93\u5c31\u662f\u5c06\u4e00\u4e2a\u5927\u7684\u6570\u636e\u5e93\u62c6\u5206\u6210\u591a\u4e2a\u7ed3\u6784\u4e00\u6837\u7684\u5c0f\u5e93\u3002<\/p>\n \u524d\u9762\u4ecb\u7ecd\u7684\u4e09\u79cd\u62c6\u5206\u5b58\u50a8\u6280\u672f\uff0c\u5728\u6211\u4ee5\u5f80\u7684\u9879\u76ee\u4e2d\u6211\u90fd\u6ca1\u4f7f\u7528\u8fc7\uff0c\u800c\u662f\u9009\u62e9\u4e86\u57fa\u4e8e MySQL \u7684\u5206\u8868\u5206\u5e93\uff0c\u4e3b\u8981\u662f\u6709\u4e00\u4e2a\u91cd\u8981\u8003\u91cf\uff1a\u5206\u8868\u5206\u5e93\u5bf9\u4e8e\u7b2c\u4e09\u65b9\u4f9d\u8d56\u8f83\u5c11\uff0c\u4e1a\u52a1\u903b\u8f91\u7075\u6d3b\u53ef\u63a7\uff0c\u5b83\u672c\u8eab\u5e76\u4e0d\u9700\u8981\u975e\u5e38\u590d\u6742\u7684\u5e95\u5c42\u5904\u7406\uff0c\u4e5f\u4e0d\u9700\u8981\u91cd\u65b0\u505a\u6570\u636e\u5e93\uff0c\u53ea\u662f\u6839\u636e\u4e0d\u540c\u903b\u8f91\u4f7f\u7528\u4e0d\u540c SQL \u8bed\u53e5\u548c\u6570\u636e\u6e90\u800c\u5df2\u3002<\/p>\n \u76ee\u524d\u5e02\u9762\u4e0a\u4e3b\u6d41\u7684\u5206\u5e93\u5206\u8868\u5206\u4e3a\u4e24\u79cd\u6a21\u5f0f\uff1aProxy\u6a21\u5f0f\u3001Client\u6a21\u5f0f<\/p>\n Proxy\u6a21\u5f0f\u5c5e\u4e8e\u4e1a\u52a1\u65e0\u4fb5\u5165\u578b\uff0c\u76f4\u63a5\u4ee3\u7406\u6570\u636e\u5e93\uff0c\u5bf9\u4e8e\u5f00\u53d1\u8005\u4e00\u5207\u90fd\u662f\u65e0\u611f\u77e5\u7684\uff0cSQL \u7ec4\u5408\u3001\u6570\u636e\u5e93\u8def\u7531\u3001\u6267\u884c\u7ed3\u679c\u5408\u5e76\u7b49\u529f\u80fd\u5168\u90e8\u5b58\u653e\u5728\u4e00\u4e2a\u4ee3\u7406\u670d\u52a1\u4e2d\uff0c\u6bd4\u5982MyCat\u3001ShardingSphere\u90fd\u5bf9Proxy\u6a21\u5f0f\u63d0\u4f9b\u4e86\u652f\u6301<\/p>\n Client\u6a21\u5f0f\u5c5e\u4e8e\u4e1a\u52a1\u4fb5\u5165\u578b\uff0c\u5c06\u5206\u5e93\u5206\u8868\u7684\u903b\u8f91\u653e\u5728\u5ba2\u6237\u7aef\uff0c\u5ba2\u6237\u7aef\u9700\u8981\u5f15\u5165\u4e00\u4e2ajar\uff0c\u6bd4\u5982Sharding-JDBC\uff0c\u67b6\u6784\u56fe\u5982\u4e0b\uff1a<\/p>\n <\/p>\n \u5e02\u9762\u4e0a\u5bf9\u4e8e\u5206\u5e93\u5206\u8868\u4e2d\u95f4\u4ef6\u5982\u4e0b\uff1a<\/p>\n <\/p>\n \u4e24\u79cd\u6a21\u5f0f\u7684\u4f18\u7f3a\u70b9\u4e5f\u5f88\u660e\u663e\uff1a<\/p>\n \u5206\u5e93\u5206\u8868\u7684\u5b9e\u73b0\u601d\u8def<\/strong><\/div>\n \u5728\u843d\u5b9e\u5206\u8868\u5206\u5e93\u89e3\u51b3\u65b9\u6848\u65f6\uff0c\u6211\u4eec\u9700\u8981\u8003\u8651 5 \u4e2a\u8981\u70b9\u3002<\/p>\n 1. \u5206\u7247\u952e\u5982\u4f55\u9009\u62e9\uff1f<\/strong><\/span><\/div>\n \u9488\u5bf9\u8ba2\u5355\u8fd9\u4e2a\u4e1a\u52a1\uff0c\u5176\u4e2d\u6d89\u53ca\u5230\u4ee5\u4e0b\u51e0\u4e2a\u4e3b\u8981\u7684\u5b57\u6bb5\uff1a<\/p>\n \u7ecf\u8fc7\u8003\u91cf\uff0c\u6700\u7ec8\u9009\u62e9\u4e86user_id\u4f5c\u4e3aShardingKey\uff0c\u4e3a\u4ec0\u4e48\u5462\uff1f<\/p>\n \u9009\u62e9user_id\u4f5c\u4e3aShardingKey\u9700\u8981\u7ed3\u5408\u4e1a\u52a1\u573a\u666f\uff0c\u8ba2\u5355\u7cfb\u7edf\u4e2d\u5e38\u89c1\u7684\u4e1a\u52a1\uff1a<\/p>\n \u4ee5\u4e0a\u4e09\u79cd\u4e1a\u52a1\u573a\u666f\uff0c\u5224\u65ad\u4e0b\u4f18\u5148\u7ea7\uff0cC\u7aef\u7528\u6237\u80af\u5b9a\u662f\u9700\u8981\u4f18\u5148\u6ee1\u8db3\uff0c\u56e0\u6b64\u4f7f\u7528user_id\u4f5c\u4e3aShardingKey<\/p>\n \u8fd9\u6837\u5728\u67e5\u8be2\u65f6\u9700\u8981\u5c06user_id\u4f20\u9012\u8fc7\u6765\u624d\u80fd\u5b9a\u4f4d\u5230\u6307\u5b9a\u5e93\u3001\u8868<\/p>\n \u9009\u62e9\u5b57\u6bb5\u4f5c\u4e3a\u5206\u7247\u952e\u65f6\uff0c\u6211\u4eec\u4e00\u822c\u9700\u8981\u8003\u8651\u4e09\u70b9\u8981\u6c42\uff1a\u6570\u636e\u5c3d\u91cf\u5747\u5300\u5206\u5e03\u5728\u4e0d\u540c\u8868\u6216\u5e93\u3001\u8de8\u5e93\u67e5\u8be2\u64cd\u4f5c\u5c3d\u53ef\u80fd\u5c11\u3001\u8fd9\u4e2a\u5b57\u6bb5\u7684\u503c\u4e0d\u4f1a\u53d8\uff08\u8fd9\u70b9\u5c24\u4e3a\u91cd\u8981\uff09\u3002<\/p>\n 2. \u5206\u7247\u7684\u7b56\u7565\u662f\u4ec0\u4e48\uff1f<\/strong><\/span><\/div>\n \u9009\u62e9user_id\u4f5c\u4e3aShardingKey\u4e4b\u540e\uff0c\u9700\u8981\u8003\u8651\u4f7f\u7528\u5206\u7247\u7b56\u7565\u4e86\uff0c\u4e3b\u8981\u5206\u4e3a\u5982\u4e0b\u4e09\u79cd<\/p>\n \u8303\u56f4\u5206\u7247 <\/p>\n \u8fd9\u79cd\u65b9\u6848\u662f\u6839\u636eHash\u503c\u8fdb\u884c\u5206\u7247\uff0c\u6bd4\u5982Hash\u51fd\u6570\u4e3a\uff1ahash(user_id%8)\uff0c\u8fd9\u91cc\u662f\u5c06user_id\u5bf98\u8fd9\u4e2a\u7279\u5b9a\u503c\u53d6\u6a21\uff0c\u6700\u7ec8\u5206\u4e3a\u4e868\u5f20\u8868\uff1b\u8fd9\u91cc\u4e00\u822c\u4e3a\u4e86\u65b9\u4fbf\u540e\u7eed\u6269\u5bb9\uff0c\u5efa\u8bae\u9009\u62e92\u7684N\u6b21\u65b9<\/p>\n \u6bd4\u5982\u5148\u6309\u7167\u8303\u56f4\u5bf9user_id\u62c6\u5206\uff0c\u6bcf100\u4e07\u4efd\u5206\u4e3a\u4e00\u4e2a\u5e93\uff0c\u5728\u5bf9\u8fd9100\u4e07\u4efd\u6570\u636e\u8fdb\u884cHash\u53d6\u6a21\uff08hash(user_id%8)\uff09\u62c6\u5206\u62108\u4e2a\u8868<\/p>\n \u5f53\u7136\u4ee5\u4e0a\u4e09\u79cd\u65b9\u6848\u7684\u4f18\u7f3a\u70b9\u4e5f\u662f\u975e\u5e38\u660e\u663e\uff0c\u8fd9\u91cc\u4e0d\u518d\u8d58\u8ff0\u4e86<\/p>\n \u9700\u8981\u6ce8\u610f\u7684\u662f\uff1a\u5728\u62c6\u5206\u4e4b\u524d\uff0c\u4e3a\u4e86\u907f\u514d\u9891\u7e41\u7684\u6269\u5bb9\uff0c\u4e00\u5b9a\u8981\u5bf9\u672a\u67655\u5e74\u6216\u800510\u5e74\u6570\u636e\u589e\u957f\u505a\u4e2a\u5224\u65ad\uff0c\u9884\u7559\u66f4\u591a\u7684\u5206\u7247<\/p>\n 3. \u4e1a\u52a1\u4ee3\u7801\u5982\u4f55\u4fee\u6539<\/strong><\/span><\/div>\n \u4e1a\u52a1\u4ee3\u7801\u7684\u4fee\u6539\u8fd9\u91cc\u5c31\u4e0d\u597d\u8bf4\u4e86\uff0c\u548c\u81ea\u8eab\u7684\u4e1a\u52a1\u662f\u5f3a\u5173\u8054\u3002<\/p>\n \u4f46\u662f\uff0c\u5728\u8fd9\u91cc\u6211\u60f3\u5206\u4eab\u4e00\u4e9b\u4e2a\u4eba\u89c2\u70b9\u3002\u8fd1\u5e74\u6765\uff0c\u5206\u8868\u5206\u5e93\u64cd\u4f5c\u6108\u53d1\u5bb9\u6613\uff0c\u4e0d\u8fc7\u6211\u4eec\u9700\u8981\u6ce8\u610f\u51e0\u4e2a\u8981\u70b9\u3002<\/p>\n \u6211\u4eec\u5df2\u7ecf\u4e60\u60ef\u5fae\u670d\u52a1\u4e86\uff0c\u5bf9\u4e8e\u7279\u5b9a\u8868\u7684\u5206\u8868\u5206\u5e93\uff0c\u5176\u5f71\u54cd\u9762\u53ea\u5728\u8be5\u8868\u6240\u5728\u7684\u670d\u52a1\u4e2d\uff0c\u5982\u679c\u662f\u4e00\u4e2a\u5355\u4f53\u67b6\u6784\u7684\u5e94\u7528\u505a\u5206\u8868\u5206\u5e93\uff0c\u90a3\u771f\u662f\u4f24\u8111\u7b4b\u3002<\/p>\n \u5728\u4e92\u8054\u7f51\u67b6\u6784\u4e2d\uff0c\u6211\u4eec\u57fa\u672c\u4e0d\u4f7f\u7528\u5916\u952e\u7ea6\u675f\u3002<\/p>\n \u968f\u7740\u67e5\u8be2\u5206\u79bb\u7684\u6d41\u884c\uff0c\u540e\u53f0\u7cfb\u7edf\u4e2d\u6709\u5f88\u591a\u64cd\u4f5c\u9700\u8981\u8de8\u5e93\u67e5\u8be2\uff0c\u5bfc\u81f4\u7cfb\u7edf\u6027\u80fd\u975e\u5e38\u5dee\uff0c\u8fd9\u65f6\u5206\u8868\u5206\u5e93\u4e00\u822c\u4f1a\u7ed3\u5408\u67e5\u8be2\u5206\u79bb\u4e00\u8d77\u64cd\u4f5c\uff1a\u5148\u5c06\u6240\u6709\u6570\u636e\u5728 ES \u7d22\u5f15\u4e00\u4efd\uff0c\u518d\u4f7f\u7528 ES \u5728\u540e\u53f0\u76f4\u63a5\u67e5\u8be2\u6570\u636e\u3002\u5982\u679c\u8ba2\u5355\u8be6\u60c5\u6570\u636e\u91cf\u5f88\u5927\uff0c\u8fd8\u6709\u4e00\u4e2a\u5e38\u89c1\u505a\u6cd5\uff0c\u5373\u5148\u5728 ES \u4e2d\u5b58\u50a8\u7d22\u5f15\u5b57\u6bb5\uff08\u4f5c\u4e3a\u67e5\u8be2\u6761\u4ef6\u7684\u5b57\u6bb5\uff09\uff0c\u518d\u5c06\u8be6\u60c5\u6570\u636e\u5b58\u653e\u5728 HBase \u4e2d\uff08\u8fd9\u4e2a\u65b9\u6848\u6211\u4eec\u5c31\u4e0d\u5c55\u5f00\u4e86\uff09\u3002<\/p>\n 4. \u5386\u53f2\u6570\u636e\u8fc1\u79fb\uff1f<\/strong><\/span><\/div>\n \u5386\u53f2\u6570\u636e\u7684\u8fc1\u79fb\u975e\u5e38\u8017\u65f6\uff0c\u6709\u65f6\u8fc1\u79fb\u51e0\u5929\u51e0\u591c\u90fd\u5f88\u6b63\u5e38\u3002\u800c\u5728\u4e92\u8054\u7f51\u884c\u4e1a\u4e2d\uff0c\u522b\u8bf4\u51e0\u5929\u51e0\u591c\u4e86\uff0c\u5c31\u8fde\u505c\u673a\u51e0\u5206\u949f\u4e1a\u52a1\u90fd\u65e0\u6cd5\u63a5\u53d7\uff0c\u8fd9\u5c31\u8981\u6c42\u6211\u4eec\u7ed9\u51fa\u4e00\u4e2a\u65e0\u7f1d\u8fc1\u79fb\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n \u8fd8\u8bb0\u5f97\u8bb2\u89e3\u67e5\u8be2\u5206\u79bb\u65f6\uff0c\u6211\u4eec\u8bf4\u8fc7\u7684\u65b9\u6848\u5417\uff1f\u6211\u4eec\u518d\u6765\u56de\u987e\u4e0b\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n <\/p>\n \u5386\u53f2\u6570\u636e\u8fc1\u79fb\u65f6\uff0c\u6211\u4eec\u5c31\u662f\u91c7\u7528\u7c7b\u4f3c\u7684\u65b9\u6848\u8fdb\u884c\u5386\u53f2\u6570\u636e\u8fc1\u79fb\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n <\/p>\n \u6b64\u6570\u636e\u8fc1\u79fb\u65b9\u6848\u7684\u57fa\u672c\u601d\u8def\uff1a\u5b58\u91cf\u6570\u636e\u76f4\u63a5\u8fc1\u79fb\uff0c\u589e\u91cf\u6570\u636e\u76d1\u542c binlog\uff0c\u7136\u540e\u901a\u8fc7 canal \u901a\u77e5\u8fc1\u79fb\u7a0b\u5e8f\u642c\u8fd0\u6570\u636e\uff0c\u65b0\u7684\u6570\u636e\u5e93\u62e5\u6709\u5168\u91cf\u6570\u636e\uff0c\u4e14\u6821\u9a8c\u901a\u8fc7\u540e\u9010\u6b65\u5207\u6362\u6d41\u91cf\u3002<\/p>\n \u6570\u636e\u8fc1\u79fb\u89e3\u51b3\u65b9\u6848\u8be6\u7ec6\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n 5. \u672a\u6765\u7684\u6269\u5bb9\u65b9\u6848\u662f\u4ec0\u4e48\uff1f<\/strong><\/span><\/div>\n \u968f\u7740\u4e1a\u52a1\u7684\u53d1\u5c55\uff0c\u5982\u679c\u539f\u6765\u7684\u5206\u7247\u8bbe\u8ba1\u5df2\u7ecf\u65e0\u6cd5\u6ee1\u8db3\u65e5\u76ca\u589e\u957f\u7684\u6570\u636e\u9700\u6c42\uff0c\u6211\u4eec\u5c31\u9700\u8981\u8003\u8651\u6269\u5bb9\u4e86\uff0c\u6269\u5bb9\u65b9\u6848\u4e3b\u8981\u4f9d\u8d56\u4ee5\u4e0b\u4e24\u70b9\u3002<\/p>\n \u5206\u7247\u7b56\u7565\u662f\u5426\u53ef\u4ee5\u8ba9\u65b0\u8868\u6570\u636e\u7684\u8fc1\u79fb\u6e90\u53ea\u662f 1 \u4e2a\u65e7\u8868\uff0c\u800c\u4e0d\u662f\u591a\u4e2a\u65e7\u8868\uff0c\u8fd9\u5c31\u662f\u524d\u9762\u6211\u4eec\u5efa\u8bae\u4f7f\u7528 2 \u7684 N \u6b21\u65b9\u5206\u8868\u7684\u539f\u56e0\uff1b \u5206\u8868\u5206\u5e93\u7684\u4e0d\u8db3<\/strong><\/div>\n \u5206\u8868\u5206\u5e93\u7684\u89e3\u51b3\u65b9\u6848\u8bb2\u5b8c\u4e86\uff0c\u4ee5\u4e0a\u5c31\u662f\u4e1a\u754c\u5e38\u7528\u7684\u4e00\u4e9b\u505a\u6cd5\uff0c\u4e0d\u8fc7\u6b64\u65b9\u6848\u4ecd\u7136\u5b58\u5728\u4e0d\u8db3\u4e4b\u5904\u3002<\/p>\n \u589e\u91cf\u6570\u636e\u8fc1\u79fb\uff1a\u5982\u4f55\u4fdd\u8bc1\u6570\u636e\u7684\u4e00\u81f4\u6027\u53ca\u9ad8\u53ef\u7528\u6027 \u5728\u524d\u9762\u7684\u6587\u7ae0\u4e2d\u63a2\u8ba8\u4e86\u67b6\u6784\u4f18\u5316\u7684\u4e24\u79cd\u65b9\u6848\uff1a\u51b7\u70ed\u5206\u79bb\u3001\u67e5\u8be2\u5206\u79bb\u3002 \u51b7\u70ed\u5206\u79bb \u67e5\u8be2\u5206\u79bb \u67e5\u8be2\u5206\u79bb\u5176\u5b9e\u5c31\u662f\u5229\u7528\u4e86\u975e\u5173\u7cfb […]<\/p>\n","protected":false},"author":1920,"featured_media":233135,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-255746","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/255746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1920"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=255746"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/255746\/revisions"}],"predecessor-version":[{"id":255753,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/255746\/revisions\/255753"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/233135"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=255746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=255746"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=255746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |