{"id":200372,"date":"2020-09-12T09:00:45","date_gmt":"2020-09-12T01:00:45","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=200372"},"modified":"2020-09-05T23:23:22","modified_gmt":"2020-09-05T15:23:22","slug":"nosql-newsql-master","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/nosql-newsql-master.html","title":{"rendered":"NoSQL\u3001NewSQL\u8c01\u80fd\u63a5\u68d2\u6570\u636e\u5e93\u884c\u4e1a"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u5bf9\u8c61\u6570\u636e\u5e93\u65b9\u9762\u6709\u610f\u601d\u7684\u5730\u65b9\u662f\uff0c\u5728\u8bb8\u591a\u60c5\u51b5\u4e0b\uff0c\u5b83\u4eec\u57fa\u672c\u4e0a\u662f\u5185\u7f6e\u5bf9\u8c61\u6620\u5c04\u5668\u7684\u666e\u901a\u6570\u636e\u5e93\u3002\u8fd9\u79cd\u6570\u636e\u5e93\u540e\u6765\u6e10\u6e10\u5931\u5ba0\uff0c\u4e0b\u4e00\u4e2a\u771f\u6b63\u7684\u4e3b\u6d41\u5c1d\u8bd5\u662f2010\u5e74\u4ee3\u7684\u201cNoSQL\u201d\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u8d77\u521d\u6709\u6587\u4ef6\uff0c\u540e\u6765\u6709\u57fa\u4e8e\u7ed3\u6784\u5316\u6587\u4ef6\u7684\u5bfc\u822a\u6570\u636e\u5e93\uff0c\u7136\u540e\u51fa\u73b0\u4e86IMS\u548cCODASYL\u3002\u5927\u698240\u5e74\u524d\uff0c\u51fa\u73b0\u4e86\u9996\u6279\u5173\u7cfb\u6570\u636e\u5e93\u3002\u572820\u4e16\u7eaa\u516b\u3001\u4e5d\u5341\u5e74\u4ee3\u7684\u5927\u90e8\u5206\u65f6\u95f4\uff0c\u201c\u6570\u636e\u5e93\u201d\u4e25\u683c\u610f\u4e49\u4e0a\u6307\u201c\u5173\u7cfb\u6570\u636e\u5e93\u201d\u2014\u2014SQL(\u6807\u51c6\u67e5\u8be2\u8bed\u8a00)\u5360\u4e3b\u5bfc\u5730\u4f4d\u3002<\/p>\n \u540e\u6765\u968f\u7740\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u8bed\u8a00\u65e5\u76ca\u6d41\u884c\uff0c\u4e00\u4e9b\u4eba\u8ba4\u4e3a\uff0c\u89e3\u51b3\u9762\u5411\u5bf9\u8c61\u8bed\u8a00\u548c\u5173\u7cfb\u6570\u636e\u5e93\u201c\u963b\u6297\u4e0d\u5339\u914d\u201d\u7684\u529e\u6cd5\u662f\u5728\u6570\u636e\u5e93\u4e2d\u6620\u5c04\u5bf9\u8c61\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u6700\u540e\u8fce\u6765\u4e86\u201c\u9762\u5411\u5bf9\u8c61\u7684\u6570\u636e\u5e93\u201d\u3002\u5bf9\u8c61\u6570\u636e\u5e93\u65b9\u9762\u6709\u610f\u601d\u7684\u5730\u65b9\u662f\uff0c\u5728\u8bb8\u591a\u60c5\u51b5\u4e0b\uff0c\u5b83\u4eec\u57fa\u672c\u4e0a\u662f\u5185\u7f6e\u5bf9\u8c61\u6620\u5c04\u5668\u7684\u666e\u901a\u6570\u636e\u5e93\u3002\u8fd9\u79cd\u6570\u636e\u5e93\u540e\u6765\u6e10\u6e10\u5931\u5ba0\uff0c\u4e0b\u4e00\u4e2a\u771f\u6b63\u7684\u4e3b\u6d41\u5c1d\u8bd5\u662f2010\u5e74\u4ee3\u7684\u201cNoSQL\u201d\u3002<\/p>\n <\/p>\n 1. \u653b\u51fbSQL<\/strong><\/div>\n NoSQL\u4ee5\u540c\u6837\u7684\u65b9\u5f0f\u653b\u51fb\u5173\u7cfb\u6570\u636e\u5e93\u548cSQL\u3002\u8fd9\u56de\u7684\u4e3b\u8981\u95ee\u9898\u662f\uff0c\u4e92\u8054\u7f51\u98a0\u8986\u4e86\u5177\u670940\u5e74\u5386\u53f2\u5173\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf(RDBMS)\u67b6\u6784\u7684\u57fa\u672c\u524d\u63d0\u3002\u8fd9\u79cd\u6570\u636e\u5e93\u65e8\u5728\u8282\u7701\u5b9d\u8d35\u7684\u78c1\u76d8\u7a7a\u95f4\uff0c\u5e76\u53ef\u7eb5\u5411\u6269\u5c55\u3002\u7136\u800c\u73b0\u5728\u6709\u592a\u591a\u7684\u7528\u6237\u548c\u592a\u591a\u7684\u4efb\u52a1\uff0c\u4e00\u53f0\u80d6\u670d\u52a1\u5668\u5904\u7406\u4e0d\u4e86\u3002NoSQL\u6570\u636e\u5e93\u5219\u5ba3\u79f0\uff0c\u5982\u679c\u6570\u636e\u5e93\u6ca1\u6709\u8fde\u63a5(join)\uff0c\u6ca1\u6709\u6807\u51c6\u67e5\u8be2\u8bed\u8a00(\u56e0\u4e3a\u5b9e\u73b0SQL\u9700\u8981\u82b1\u8d39\u65f6\u95f4)\uff0c\u4e5f\u6ca1\u6709\u6570\u636e\u5b8c\u6574\u6027\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u6a2a\u5411\u6269\u5c55\u4ee5\u5904\u7406\u4f17\u591a\u7528\u6237\u3002\u8fd9\u89e3\u51b3\u4e86\u7eb5\u5411\u6269\u5c55\u7684\u95ee\u9898\uff0c\u4f46\u4e5f\u5e26\u6765\u4e86\u65b0\u95ee\u9898\u3002<\/p>\n \u4e0e\u8fd9\u4e9b\u8054\u673a\u4ea4\u6613\u5904\u7406\u7cfb\u7edf(OLTP)\u5e76\u884c\u5f00\u53d1\u7684\u662f\u53e6\u4e00\u79cd\u5173\u7cfb\u6570\u636e\u5e93\uff0c\u540d\u4e3a\u8054\u673a\u5206\u6790\u5904\u7406\u7cfb\u7edf(OLAP)\u3002\u8fd9\u79cd\u6570\u636e\u5e93\u652f\u6301\u5173\u7cfb\u7ed3\u6784\uff0c\u4f46\u5728\u6267\u884c\u67e5\u8be2\u65f6\u5c31\u77e5\u9053\u5b83\u4eec\u5c06\u8fd4\u56de\u5927\u91cf\u6570\u636e\u3002\u4e0a\u4e16\u7eaa\u516b\u3001\u4e5d\u5341\u5e74\u4ee3\u7684\u516c\u53f8\u4f01\u4e1a\u4ecd\u4e3b\u8981\u7531\u6279\u5904\u7406\u9a71\u52a8\u3002\u6b64\u5916\uff0cOLAP\u7cfb\u7edf\u4e3a\u5f00\u53d1\u548c\u5206\u6790\u4eba\u5458\u63d0\u4f9b\u4e86\u5c06\u6570\u636e\u60f3\u8c61\u6210n\u7ef4\u6570\u636e\u96c6\u5e76\u52a0\u4ee5\u5b58\u50a8\u7684\u80fd\u529b\u3002\u5982\u679c\u4f60\u8bbe\u60f3\u4e8c\u7ef4\u6570\u7ec4\u548c\u57fa\u4e8e\u4e24\u4e2a\u7d22\u5f15\u7684\u67e5\u8be2\uff0c\u4ee5\u4fbf\u57fa\u672c\u4e0a\u4e0e\u6052\u5b9a\u65f6\u95f4\u4e00\u6837\u9ad8\u6548\uff0c\u4f46\u662f\u968f\u540e\u5728\u6b64\u57fa\u7840\u4e0a\u6dfb\u52a0\u53e6\u4e00\u4e2a\u7ef4\u5ea6\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u6267\u884c\u5b9e\u8d28\u4e0a\u662f3\u4e2a\u6216\u66f4\u591a\u56e0\u7d20(\u6bd4\u5982\u4f9b\u5e94\u3001\u9700\u6c42\u548c\u7ade\u4e89\u5bf9\u624b\u6570\u91cf)\u7684\u67e5\u8be2\uff0c\u4f60\u5c31\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u5206\u6790\u548c\u9884\u6d4b\u3002\u7136\u800c\uff0c\u6784\u5efa\u8fd9\u4e9b\u5143\u7d20\u662f\u4e00\u9879\u8d39\u529b\u53c8\u9ad8\u5ea6\u9762\u5411\u6279\u5904\u7406\u7684\u5de5\u4f5c\u3002<\/p>\n \u56fe\u5f62\u6570\u636e\u5e93\u51e0\u4e4e\u4e0e\u6a2a\u5411\u6269\u5c55\u578bNoSQL\u540c\u4e00\u65f6\u95f4\u9762\u5e02\u3002\u8bb8\u591a\u4e8b\u7269\u672c\u8eab\u4e0d\u662f\u201c\u5173\u7cfb\u578b\u201d\uff0c\u6216\u8005\u4e0d\u662f\u57fa\u4e8e\u96c6\u5408\u8bba\u548c\u5173\u7cfb\u4ee3\u6570\uff0c\u800c\u662f\u57fa\u4e8e\u7236\u5b50\u5173\u7cfb\u6216\u670b\u53cb\u7684\u670b\u53cb\u5173\u7cfb\u3002\u4e00\u4e2a\u5178\u4f8b\u662f\u6a21\u578b\u4e2d\u7684\u4ea7\u54c1\u7cfb\u5217-\u4ea7\u54c1\u54c1\u724c-\u6b3e\u578b-\u90e8\u4ef6\u3002\u5982\u679c\u4f60\u60f3\u77e5\u9053\u201c\u6211\u7684\u7b14\u8bb0\u672c\u7535\u8111\u642d\u8f7d\u4ec0\u4e48\u4e3b\u677f?\u201d\uff0c\u4f1a\u53d1\u73b0\u5236\u9020\u5546\u7684\u91c7\u8d2d\u6765\u6e90\u5f88\u590d\u6742\uff0c\u5149\u6709\u54c1\u724c\u6216\u578b\u53f7\u53ef\u80fd\u4e0d\u591f\u3002\u5982\u679c\u4f60\u60f3\u77e5\u9053\u67d0\u4ea7\u54c1\u7cfb\u5217\u4e2d\u4f7f\u7528\u7684\u6240\u6709\u4e3b\u677f\uff0c\u5728\u7ecf\u5178(\u975eCTE\u5373\u901a\u7528\u8868\u8868\u8fbe\u5f0f)SQL\u4e2d\uff0c\u4f60\u5fc5\u987b\u904d\u5386\u8868\uff0c\u5e76\u4e14\u5206\u591a\u4e2a\u6b65\u9aa4\u8fdb\u884c\u67e5\u8be2\u3002\u6700\u521d\uff0c\u5927\u591a\u6570\u56fe\u5f62\u6570\u636e\u5e93\u6839\u672c\u5c31\u4e0d\u5206\u7247\u3002\u5b9e\u9645\u4e0a\uff0c\u65e0\u9700\u5c06\u6570\u636e\u5b9e\u9645\u5b58\u50a8\u4e3a\u56fe\u5f62\uff0c\u5c31\u80fd\u5b8c\u6210\u8bb8\u591a\u7c7b\u578b\u7684\u56fe\u5f62\u5206\u6790\u3002<\/p>\n 2. \u5151\u73b0\u548c\u672a\u5151\u73b0\u7684NoSQL\u627f\u8bfa<\/strong><\/div>\n NoSQL\u6570\u636e\u5e93\u7684\u6269\u5c55\u6027\u786e\u5b9e\u6bd4Oracle\u6570\u636e\u5e93\u3001DB2\u6216SQL Server(\u5b83\u4eec\u90fd\u57fa\u4e8e40\u5e74\u524d\u7684\u4e00\u79cd\u8bbe\u8ba1)\u597d\u5f97\u591a\u3002\u7136\u800c\uff0c\u6bcf\u79cdNoSQL\u6570\u636e\u5e93\u90fd\u5b58\u5728\u65b0\u7684\u9650\u5236\uff1a<\/p>\n (1) \u952e\u503c\u5b58\u50a8 \u00b7<\/p>\n \u6ca1\u6709\u6bd4db.get(\u952e)\u66f4\u7b80\u5355\u7684\u67e5\u8be2\u4e86\u3002\u7136\u800c\uff0c\u4e16\u754c\u4e0a\u8bb8\u591a\u6570\u636e\u548c\u4f7f\u7528\u573a\u666f\u65e0\u6cd5\u4ee5\u8fd9\u79cd\u65b9\u5f0f\u6765\u8bbe\u8ba1\u7ed3\u6784\u3002\u6b64\u5916\uff0c\u6211\u4eec\u5176\u5b9e\u5728\u8c08\u8bba\u7f13\u5b58\u7b56\u7565\u3002\u5728\u4efb\u4f55\u6570\u636e\u5e93\u4e2d\uff0c\u4e3b\u952e\u67e5\u8be2\u901f\u5ea6\u5f88\u5feb\u3002\u91cd\u8981\u7684\u53ea\u662f\u5185\u5b58\u4e2d\u7684\u6570\u636e\u3002\u5728\u7406\u60f3\u60c5\u51b5\u4e0b\uff0c\u5b83\u4eec\u50cf\u54c8\u5e0c\u56fe\u4e00\u6837\u6269\u5c55\u3002\u7136\u800c\uff0c\u5982\u679c\u8981\u8dd130\u8d9f\u6570\u636e\u5e93\u624d\u80fd\u5c06\u6570\u636e\u653e\u56de\u53bb\u6216\u8fdb\u884c\u4efb\u4f55\u7c7b\u578b\u7684\u590d\u6742\u67e5\u8be2\uff0c\u8fd9\u884c\u4e0d\u901a\u3002\u8fd9\u4e9b\u7cfb\u7edf\u73b0\u5728\u66f4\u5e38\u4f5c\u4e3a\u7f13\u5b58\u5b9e\u65bd\u5728\u5176\u4ed6\u6570\u636e\u5e93\u7684\u524d\u9762\u3002(\u4f8b\u5b50\uff1aRedis\u3002)<\/p>\n (2) \u6587\u6863\u6570\u636e\u5e93 \u00b7<\/p>\n \u8fd9\u79cd\u6570\u636e\u5e93\u4e4b\u6240\u4ee5\u6d41\u884c\u8d77\u6765\uff0c\u662f\u7531\u4e8e\u5b83\u4eec\u4f7f\u7528JSON\uff0c\u5bf9\u8c61\u53c8\u6613\u4e8e\u5e8f\u5217\u5316\u6210JSON\u3002\u8fd9\u79cd\u6570\u636e\u5e93\u7684\u7b2c\u4e00\u4e2a\u7248\u672c\u6ca1\u6709\u8fde\u63a5\uff0c\u5c06\u6574\u4e2a\u201c\u5b9e\u4f53\u201d\u653e\u5230\u4e00\u4e2a\u5e9e\u5927\u7684\u6587\u6863\u4e2d\u6709\u5176\u81ea\u8eab\u7684\u7f3a\u70b9\u3002\u6ca1\u6709\u4e8b\u52a1\u4fdd\u8bc1\uff0c\u4f60\u8fd8\u4f1a\u9047\u5230\u6570\u636e\u5b8c\u6574\u6027\u95ee\u9898\u3002\u4eca\u5929\uff0c\u4e00\u4e9b\u6587\u6863\u6570\u636e\u5e93\u652f\u6301\u4e00\u79cd\u4e0d\u592a\u53ef\u9760\u7684\u4e8b\u52a1\uff0c\u4f46\u5b83\u4e0d\u662f\u5927\u591a\u6570\u4eba\u4e60\u60ef\u7684\u540c\u4e00\u79cd\u4fdd\u62a4\u7ea7\u522b\u3002\u800c\u4e14\uff0c\u5373\u4f7f\u5bf9\u7b80\u5355\u67e5\u8be2\u800c\u8a00\uff0c\u8fd9\u79cd\u6570\u636e\u5e93\u5728\u5ef6\u8fdf\u65b9\u9762\u5e38\u5e38\u901f\u5ea6\u5f88\u6162\uff0c\u5c3d\u7ba1\u5b83\u4eec\u5c31\u541e\u5410\u91cf\u800c\u8a00\u6269\u5c55\u6027\u66f4\u597d\u3002(\u4f8b\u5b50\uff1aMongoDB\u548cAmazon DocumentDB\u3002)<\/p>\n (3) \u5217\u5b58\u50a8 \u00b7<\/p>\n \u8fd9\u79cd\u6570\u636e\u5e93\u7684\u67e5\u8be2\u901f\u5ea6\u4e0e\u952e\u503c\u5b58\u50a8\u4e00\u6837\u5feb\uff0c\u5b83\u4eec\u53ef\u4ee5\u5b58\u50a8\u66f4\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u3002\u7136\u800c\uff0c\u5982\u679c\u6267\u884c\u50cf\u8de83\u4e2a\u8868(RDBMS\u672f\u8bed)\u62163\u4e2a\u96c6\u5408(MongoDB\u672f\u8bed)\u8fde\u63a5\u8fd9\u6837\u7684\u64cd\u4f5c\uff0c\u4f1a\u8ba9\u4eba\u75db\u82e6\u4e0d\u582a\u3002\u8fd9\u79cd\u6570\u636e\u5e93\u786e\u5b9e\u9002\u5408\u65f6\u95f4\u5e8f\u5217\u6570\u636e(\u8bf7\u7ed9\u6211\u5728\u4e0b\u53481\u70b9\u81f32\u70b9\u51fa\u73b0\u7684\u6240\u6709\u4e8b\u52a1)\u3002<\/p>\n \u8fd8\u6709\u5176\u4ed6\u66f4\u6df1\u5965\u7684NoSQL\u6570\u636e\u5e93\u3002\u7136\u800c\uff0c\u6240\u6709\u8fd9\u4e9b\u6570\u636e\u5e93\u7684\u5171\u540c\u70b9\u662f\u4e0d\u652f\u6301\u901a\u7528\u6570\u636e\u5e93\u60ef\u7528\u8bed\uff0c\u800c\u4e14\u5f80\u5f80\u4e13\u6ce8\u4e8e\u201c\u7279\u6b8a\u7528\u9014\u201d\u3002\u4e00\u4e9b\u6d41\u884c\u7684NoSQL\u6570\u636e\u5e93(\u6bd4\u5982MongoDB)\u7f16\u5199\u4e86\u51fa\u8272\u7684\u6570\u636e\u5e93\u524d\u7aef\u548c\u751f\u6001\u7cfb\u7edf\u5de5\u5177\uff0c\u56e0\u800c\u5f00\u53d1\u4eba\u5458\u5f88\u5bb9\u6613\u91c7\u7528\u5b83\u4eec\uff0c\u4f46\u5b58\u50a8\u5f15\u64ce\u5b58\u5728\u4e25\u91cd\u7684\u9650\u5236\uff0c\u66f4\u4e0d\u7528\u8bf4\u5f39\u6027\u548c\u53ef\u6269\u5c55\u6027\u65b9\u9762\u7684\u9650\u5236\u4e86\u3002<\/p>\n 3. \u6570\u636e\u5e93\u6807\u51c6\u4ecd\u7136\u5f88\u91cd\u8981<\/strong><\/div>\n \u5173\u7cfb\u6570\u636e\u5e93\u5360\u4e3b\u5bfc\u5730\u4f4d\u7684\u539f\u56e0\u4e4b\u4e00\u662f\uff0c\u5b83\u4eec\u6709\u4e00\u4e2a\u901a\u7528\u7684\u5de5\u5177\u751f\u6001\u7cfb\u7edf\u3002\u9996\u5148\u6709SQL\u3002\u867d\u7136\u6570\u636e\u5e93\u65b9\u8a00\u53ef\u80fd\u4e0d\u4e00\u6837\u2014\u2014\u5982\u679c\u4f60\u662f\u5f00\u53d1\u6216\u5206\u6790\u4eba\u5458\uff0c\u60f3\u4eceSQL Server 6.5\u5347\u7ea7\u5230Oracle 7\uff0c\u53ef\u80fd\u4e0d\u5f97\u4e0d\u4fee\u590d\u67e5\u8be2\uff0c\u5e76\u4f7f\u7528\u201c(+)\u201d\u7528\u4e8e\u5916\u90e8\u8fde\u63a5\uff0c\u4f46\u662f\u7b80\u5355\u7684\u5207\u5b9e\u53ef\u884c\uff0c\u590d\u6742\u7684\u5f88\u5bb9\u6613\u8f6c\u6362\u3002<\/p>\n \u5176\u6b21\uff0c\u4f60\u6709ODBC\u4ee5\u53ca\u540e\u6765\u7684JDBC\u7b49\u3002\u51e0\u4e4e\u4efb\u4f55\u53ef\u4ee5\u8fde\u63a5\u5230\u4e00\u4e2aRDBMS\u7684\u5de5\u5177(\u9664\u975e\u4e3a\u4e86\u7ba1\u7406\u8be5RDBMS\u800c\u4e13\u95e8\u8bbe\u8ba1)\u90fd\u53ef\u4ee5\u8fde\u63a5\u5230\u5176\u4ed6\u4efb\u4f55RDBMS\u3002\u6709\u8bb8\u591a\u4eba\u6bcf\u5929\u8fde\u63a5\u5230RDBMS\uff0c\u5e76\u5c06\u6570\u636e\u5012\u5165\u5230Excel\u4ee5\u4fbf\u5206\u6790\u3002\u6211\u4e0d\u662f\u6307Tableau\u6216\u5176\u4ed6\u6570\u767e\u79cd\u5de5\u5177\uff0c\u800c\u662f\u6307\u201c\u9f3b\u7956\u201dExcel\u3002<\/p>\n NoSQL\u6448\u5f03\u4e86\u6807\u51c6\u3002MongoDB\u4e0d\u4f7f\u7528SQL\u4f5c\u4e3a\u4e3b\u8981\u8bed\u8a00\u3002MongoDB\u7684\u52b2\u654cCouchbase\u5bfb\u627e\u4e00\u79cd\u67e5\u8be2\u8bed\u8a00\u6765\u53d6\u4ee3\u57fa\u4e8eJava\u7684mapreduce\u6846\u67b6\u65f6\uff0c\u66f4\u662f\u521b\u5efa\u4e86\u4e00\u5957\u81ea\u5df1\u7684SQL\u65b9\u8a00\u3002<\/p>\n \u6807\u51c6\u5f88\u91cd\u8981\uff0c\u65e0\u8bba\u662f\u4e3a\u4e86\u652f\u6301\u5de5\u5177\u751f\u6001\u7cfb\u7edf\uff0c\u8fd8\u662f\u7531\u4e8e\u8bb8\u591a\u67e5\u8be2\u6570\u636e\u5e93\u7684\u4eba\u4e0d\u662f\u5f00\u53d1\u4eba\u5458\u2014\u2014\u4ed6\u4eec\u90fd\u77e5\u9053SQL\u3002<\/p>\n 4. GraphQL\u548c\u72b6\u6001\u7ba1\u7406\u7684\u5174\u8d77<\/strong><\/div>\n \u4f60\u77e5\u9053\u8c01\u603b\u662f\u7fd8\u7740\u4e24\u4e2a\u5927\u62c7\u6307\u60f3\u642d\u8f66\uff0c\u5c31\u60f3\u8ba9\u4ed6\u7684\u5e94\u7528\u8fdb\u5165\u5230\u6570\u636e\u5e93\u91cc\uff0c\u4f46\u5374\u4e0d\u5173\u5fc3\u5982\u4f55\u5b9e\u73b0\u5417?\u4e8b\u5b9e\u8bc1\u660e\uff0c\u6574\u6574\u4e00\u4ee3\u7684\u5f00\u53d1\u4eba\u5458\u90fd\u60f3\u8fd9\u4e48\u505a\u3002\u800cGraphQL(\u4e0e\u56fe\u5f62\u6570\u636e\u5e93\u65e0\u5173)\u53ef\u5c06\u5bf9\u8c61\u56fe\u5f62\u5b58\u50a8\u5728\u5e95\u5c42\u6570\u636e\u5b58\u50a8\u7cfb\u7edf\u4e2d\u3002\u8fd9\u6837\u4e00\u6765\uff0c\u5f00\u53d1\u4eba\u5458\u5c31\u4e0d\u5fc5\u62c5\u5fc3\u8fd9\u4e2a\u95ee\u9898\u4e86\u3002<\/p>\n \u8fd9\u65b9\u9762\u7684\u65e9\u671f\u5c1d\u8bd5\u662f\u5bf9\u8c61\u5173\u7cfb\u6620\u5c04(ORM)\u5de5\u5177\uff0c\u6bd4\u5982Hibernate\u3002\u5b83\u4eec\u62ff\u6765\u4e00\u4e2a\u5bf9\u8c61\u540e\uff0c\u57fa\u4e8e\u5bf9\u8c61\u5230\u8868\u7684\u6620\u5c04\u8bbe\u7f6e\uff0c\u57fa\u672c\u4e0a\u5c06\u5bf9\u8c61\u53d8\u6210\u4e86SQL\u3002\u8fd9\u79cd\u5de5\u5177\u7684\u8bb8\u591a\u524d\u51e0\u4ee3\u4ea7\u54c1\u5f88\u96be\u914d\u7f6e\u3002\u6b64\u5916\uff0c\u6211\u4eec\u9762\u4e34\u5b66\u4e60\u8fc7\u7a0b\u3002<\/p>\n \u5927\u591a\u6570GraphQL\u5b9e\u73b0\u65b9\u6cd5\u4e0eSequelize\u6216TypeORM\u4e4b\u7c7b\u7684\u5bf9\u8c61\u5173\u7cfb\u6620\u5c04\u5de5\u5177\u517c\u5bb9\u3002\u7ed3\u6784\u826f\u597d\u7684GraphQL\u5b9e\u73b0\u65b9\u6cd5\u548cAPI\u4e0d\u4f1a\u5728\u4f60\u7684\u5168\u90e8\u4ee3\u7801\u4e2d\u6cc4\u9732\u72b6\u6001\u7ba1\u7406\u95ee\u9898\uff0c\u800c\u662f\u5728\u5bf9\u8c61\u56fe\u5f62\u53d1\u751f\u53d8\u5316\u65f6\u5199\u5165\u5e76\u8fd4\u56de\u76f8\u5173\u6570\u636e\u3002\u8c01\u4f1a\u5728\u5e94\u7528\u5c42\u9762\u771f\u6b63\u5173\u5fc3\u6570\u636e\u662f\u5982\u4f55\u5b58\u50a8\u7684?<\/p>\n \u9762\u5411\u5bf9\u8c61\u6570\u636e\u5e93\u548cNoSQL\u6570\u636e\u5e93\u7684\u57fa\u7840\u4e4b\u4e00\u662f\uff0c\u5e94\u7528\u5f00\u53d1\u4eba\u5458\u8981\u610f\u8bc6\u5230\u6570\u636e\u5728\u6570\u636e\u5e93\u4e2d\u5982\u4f55\u5b58\u50a8\u65b9\u9762\u7684\u590d\u6742\u60c5\u51b5\u3002\u5f53\u7136\uff0c\u8fd9\u5bf9\u4e8e\u5f00\u53d1\u4eba\u5458\u6765\u8bf4\u5f88\u96be\u7528\u8f83\u65b0\u9896\u7684\u6280\u672f\u6765\u9a7e\u9a6d\uff0c\u4f46\u73b0\u5728\u4e0d\u518d\u56f0\u96be\u4e86\uff0c\u56e0\u4e3aGraphQL\u5b8c\u5168\u6d88\u9664\u4e86\u8fd9\u4e2a\u95ee\u9898<\/p>\n 5. NewSQL\u6216\u5206\u5e03\u5f0fSQL\u95ea\u4eae\u767b\u573a<\/strong><\/div>\n \u8c37\u6b4c\u9047\u5230\u4e86\u6570\u636e\u5e93\u95ee\u9898\uff0c\u5199\u4e86\u4e00\u7bc7\u8bba\u6587\uff0c\u7136\u540e\u7f16\u5199\u4e86\u4e00\u79cd\u540d\u4e3a\u201cSpanner\u201d\u7684\u5b9e\u73b0\u65b9\u6cd5\uff0c\u63cf\u8ff0\u4e86\u5168\u5c40\u5206\u5e03\u5f0f\u5173\u7cfb\u6570\u636e\u5e93\u5982\u4f55\u884c\u5f97\u901a\u3002Spanner\u5f15\u53d1\u5173\u7cfb\u6570\u636e\u5e93\u6280\u672f\u9886\u57df\u8fce\u6765\u4e86\u65b0\u4e00\u6ce2\u521b\u65b0\u3002\u4f60\u5b9e\u9645\u4e0a\u53ef\u4ee5\u6709\u4e00\u4e2a\u5173\u7cfb\u6570\u636e\u5e93\uff0c\u4e0d\u4ec5\u8ba9\u5b83\u80fd\u6269\u5c55\uff0c\u8fd8\u80fd\u5728\u9700\u8981\u65f6\u8fdb\u884c\u5168\u7403\u8303\u56f4\u6269\u5c55\u3002\u6211\u4eec\u6240\u8c08\u8bba\u7684\u662f\u73b0\u4ee3\u610f\u4e49\u4e0a\u7684\u5927\u89c4\u6a21\uff0c\u800c\u4e0d\u662f\u7ecf\u5e38\u4ee4\u4eba\u5931\u671b\u4e14\u65e5\u8d8b\u590d\u6742\u7684RAC\/Streams\/GoldenGate\u65b9\u6cd5\u3002<\/p>\n <\/p>\n \u6240\u4ee5\uff0c\u5173\u7cfb\u7cfb\u7edf\u4e2d\u201c\u5b58\u50a8\u5bf9\u8c61\u201d\u7684\u524d\u63d0\u662f\u9519\u8bef\u7684\u3002\u5982\u679c\u5173\u7cfb\u6570\u636e\u5e93\u7684\u4e3b\u8981\u95ee\u9898\u662f\u540e\u7aef\u800c\u4e0d\u662f\u524d\u7aef\uff0c\u5c06\u4f1a\u600e\u4e48\u6837?\u8fd9\u5c31\u662f\u6240\u8c13\u7684\u201cNewSQL\u201d\u6216\u540d\u79f0\u66f4\u6070\u5f53\u7684\u201c\u5206\u5e03\u5f0fSQL\u201d\u6570\u636e\u5e93\u80cc\u540e\u7684\u60f3\u6cd5\u3002\u5176\u60f3\u6cd5\u5c31\u662f\u5c06NoSQL\u5b58\u50a8\u77e5\u8bc6\u548c\u8c37\u6b4c\u7684Spanner\u6982\u5ff5\u4e0e\u4e00\u79cd\u6210\u719f\u7684\u5f00\u6e90RDBMS\u524d\u7aef(\u6bd4\u5982PostgreSQL\u6216MySQL\/MariaDB)\u7ed3\u5408\u8d77\u6765\u3002<\/p>\n \u8fd9\u610f\u5473\u7740\u4ec0\u4e48?\u8fd9\u610f\u5473\u7740\u9c7c\u548c\u718a\u638c\u53ef\u4ee5\u517c\u5f97\u3002\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u6709\u591a\u4e2a\u8282\u70b9\uff0c\u5e76\u6a2a\u5411\u6269\u5c55\u2014\u2014\u5305\u62ec\u8de8\u4e91\u53ef\u7528\u533a\u6269\u5c55\u3002\u8fd9\u610f\u5473\u7740\u4f60\u53ef\u4ee5\u6709\u591a\u4e2a\u6570\u636e\u4e2d\u5fc3\u6216\u4e91\u5730\u7406\u533a\u57df\u2014\u2014\u4ec5\u7528\u4e00\u4e2a\u6570\u636e\u5e93\u3002\u8fd9\u610f\u5473\u7740\u4f5c\u4e3a\u7528\u6237\uff0c\u4f60\u53ef\u4ee5\u62e5\u6709\u771f\u6b63\u7684\u53ef\u9760\u6027\u548c\u6c38\u8fdc\u4e0d\u4f1a\u5d29\u6e83\u7684\u6570\u636e\u5e93\u96c6\u7fa4\u3002<\/p>\n \u4e0e\u6b64\u540c\u65f6\uff0c\u6574\u4e2aSQL\u751f\u6001\u7cfb\u7edf\u4ecd\u6709\u7528!\u4f60\u65e0\u9700\u91cd\u65b0\u6784\u5efa\u6574\u4e2aIT\u57fa\u7840\u67b6\u6784\u5c31\u80fd\u505a\u5230\u8fd9\u70b9\u3002\u867d\u7136\u4f60\u53ef\u80fd\u4e0d\u6562\u201c\u4e22\u5f03\u5e76\u66f4\u6362\u201d\u4f20\u7edf\u7684RDBMS\uff0c\u4f46\u5927\u591a\u6570\u4f01\u4e1a\u5e76\u4e0d\u6253\u7b97\u4f7f\u7528\u66f4\u591a\u7684Oracle\u3002\u6700\u68d2\u7684\u662f\uff0c\u4f60\u4ecd\u53ef\u4ee5\u4f7f\u7528\u5728\u4e91\u7aef\u548c\u5168\u7403\u5404\u5730\u7684SQL\u53ca\u6240\u6709\u5de5\u5177\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" \u8d77\u521d\u6709\u6587\u4ef6\uff0c\u540e\u6765\u6709\u57fa\u4e8e\u7ed3\u6784\u5316\u6587\u4ef6\u7684\u5bfc\u822a\u6570\u636e\u5e93\uff0c\u7136\u540e\u51fa\u73b0\u4e86IMS\u548cCODASYL\u3002\u5927\u698240\u5e74\u524d\uff0c\u51fa\u73b0\u4e86\u9996\u6279\u5173\u7cfb\u6570 […]<\/p>\n","protected":false},"author":317,"featured_media":200375,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-200372","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/200372","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\/317"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=200372"}],"version-history":[{"count":1,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/200372\/revisions"}],"predecessor-version":[{"id":200376,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/200372\/revisions\/200376"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/200375"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=200372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=200372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=200372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} |