{"id":579716,"date":"2023-12-28T03:11:06","date_gmt":"2023-12-28T03:11:06","guid":{"rendered":"https:\/\/proxyelite.info\/glossary\/mongodb\/"},"modified":"2023-12-28T03:11:06","modified_gmt":"2023-12-28T03:11:06","slug":"mongodb","status":"publish","type":"glossary","link":"https:\/\/proxyelite.info\/cn\/glossary\/mongodb\/","title":{"rendered":"MongoDB"},"content":{"rendered":"<h2>\u5173\u4e8e MongoDB \u7684\u7b80\u8981\u4fe1\u606f<\/h2>\n<p>MongoDB\uff0c\u901a\u5e38\u79f0\u4e3a\u201cMongo\u201d\uff0c\u662f\u4e00\u79cd NoSQL \u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u8fd1\u5e74\u6765\u975e\u5e38\u53d7\u6b22\u8fce\u3002\u5b83\u7531 MongoDB, Inc. \u5f00\u53d1\uff0c\u662f\u4e00\u4e2a\u5f00\u6e90\u3001\u9762\u5411\u6587\u6863\u7684\u6570\u636e\u5e93\uff0c\u65e8\u5728\u9ad8\u6548\u5730\u5b58\u50a8\u3001\u68c0\u7d22\u548c\u7ba1\u7406\u5927\u91cf\u6570\u636e\u3002 MongoDB \u7684\u7075\u6d3b\u6027\u548c\u53ef\u6269\u5c55\u6027\u4f7f\u5176\u6210\u4e3a\u5404\u79cd\u5e94\u7528\u7a0b\u5e8f\u548c\u7528\u4f8b\u7684\u9996\u9009\u3002<\/p>\n<h2>\u6709\u5173 MongoDB \u7684\u8be6\u7ec6\u4fe1\u606f<\/h2>\n<p>MongoDB \u7684\u67b6\u6784\u56f4\u7ed5\u96c6\u5408\u548c\u6587\u6863\u7684\u6982\u5ff5\u3002\u96c6\u5408\u7c7b\u4f3c\u4e8e\u5173\u7cfb\u6570\u636e\u5e93\u4e2d\u7684\u8868\uff0c\u800c\u6587\u6863\u662f\u8fd9\u4e9b\u96c6\u5408\u4e2d\u7684\u5355\u72ec\u8bb0\u5f55\u3002\u6bcf\u4e2a\u6587\u6863\u90fd\u4ee5 BSON\uff08\u4e8c\u8fdb\u5236 JSON\uff09\u683c\u5f0f\u5b58\u50a8\uff0c\u8fd9\u4f7f\u5f97\u6570\u636e\u5b58\u50a8\u5177\u6709\u7075\u6d3b\u6027\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5728\u5355\u4e2a\u96c6\u5408\u4e2d\u5bb9\u7eb3\u5404\u79cd\u6570\u636e\u7c7b\u578b\u548c\u7ed3\u6784\u3002<\/p>\n<h3>MongoDB\u5173\u952e\u7279\u6027\u5206\u6790<\/h3>\n<p>MongoDB \u62e5\u6709\u51e0\u4e2a\u533a\u522b\u4e8e\u4f20\u7edf\u5173\u7cfb\u6570\u636e\u5e93\u7684\u5173\u952e\u7279\u6027\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u65e0\u6a21\u5f0f\uff1a<\/strong> \u4e0e\u5173\u7cfb\u6570\u636e\u5e93\u4e0d\u540c\uff0cMongoDB \u662f\u65e0\u6a21\u5f0f\u7684\uff0c\u8fd9\u610f\u5473\u7740\u60a8\u5728\u5b58\u50a8\u6570\u636e\u4e4b\u524d\u4e0d\u9700\u8981\u4e3a\u6570\u636e\u5b9a\u4e49\u56fa\u5b9a\u7ed3\u6784\u3002\u8fd9\u79cd\u7075\u6d3b\u6027\u4f7f\u5176\u6210\u4e3a\u6570\u636e\u968f\u65f6\u95f4\u53d8\u5316\u7684\u9879\u76ee\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u6c34\u5e73\u53ef\u6269\u5c55\u6027\uff1a<\/strong> MongoDB \u4e13\u4e3a\u6c34\u5e73\u6269\u5c55\u800c\u8bbe\u8ba1\uff0c\u8fd9\u610f\u5473\u7740\u5b83\u53ef\u4ee5\u901a\u8fc7\u5411\u96c6\u7fa4\u6dfb\u52a0\u66f4\u591a\u670d\u52a1\u5668\u6765\u5904\u7406\u589e\u52a0\u7684\u8d1f\u8f7d\u3002\u8fd9\u4f7f\u5f97\u5b83\u975e\u5e38\u9002\u5408\u9700\u8981\u53ef\u6269\u5c55\u6027\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f8b\u5982\u7535\u5b50\u5546\u52a1\u5e73\u53f0\u548c\u5b9e\u65f6\u5206\u6790\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u9ad8\u53ef\u7528\u6027\uff1a<\/strong> MongoDB \u63d0\u4f9b\u590d\u5236\u548c\u81ea\u52a8\u6545\u969c\u8f6c\u79fb\u7b49\u529f\u80fd\uff0c\u4ee5\u786e\u4fdd\u9ad8\u53ef\u7528\u6027\u548c\u6570\u636e\u5197\u4f59\u3002\u5f53\u670d\u52a1\u5668\u53d1\u751f\u6545\u969c\u65f6\uff0c\u7cfb\u7edf\u65e0\u7f1d\u5207\u6362\u5230\u5907\u4efd\u8282\u70b9\uff0c\u6700\u5927\u9650\u5ea6\u5730\u51cf\u5c11\u505c\u673a\u65f6\u95f4\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4e30\u5bcc\u7684\u67e5\u8be2\u8bed\u8a00\uff1a<\/strong> MongoDB \u652f\u6301\u5f3a\u5927\u7684\u67e5\u8be2\u8bed\u8a00\uff0c\u5141\u8bb8\u590d\u6742\u548c\u52a8\u6001\u7684\u67e5\u8be2\uff0c\u5305\u62ec\u5730\u7406\u7a7a\u95f4\u67e5\u8be2\u3001\u6587\u672c\u641c\u7d22\u548c\u805a\u5408\u64cd\u4f5c\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5168\u6587\u68c0\u7d22\uff1a<\/strong> \u51ed\u501f\u5176\u96c6\u6210\u7684\u6587\u672c\u641c\u7d22\u529f\u80fd\uff0cMongoDB \u53ef\u4ee5\u5bf9\u5927\u578b\u6570\u636e\u96c6\u8fdb\u884c\u9ad8\u6548\u7684\u5168\u6587\u641c\u7d22\uff0c\u4f7f\u5176\u6210\u4e3a\u5185\u5bb9\u9a71\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u5b9d\u8d35\u5de5\u5177\u3002<\/p>\n<\/li>\n<\/ol>\n<h3>MongoDB \u7684\u7c7b\u578b<\/h3>\n<p>MongoDB \u63d0\u4f9b\u4e0d\u540c\u7684\u7248\u672c\u548c\u90e8\u7f72\u9009\u9879\u6765\u6ee1\u8db3\u4e0d\u540c\u7684\u9700\u6c42\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>MongoDB \u7248<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>MongoDB \u793e\u533a<\/td>\n<td>MongoDB \u7684\u514d\u8d39\u5f00\u6e90\u7248\u672c\u3002\u5b83\u9002\u5408\u4e2d\u5c0f\u578b\u9879\u76ee\u3002<\/td>\n<\/tr>\n<tr>\n<td>MongoDB \u963f\u7279\u62c9\u65af<\/td>\n<td>MongoDB \u5728\u4e91\u4e2d\u5b8c\u5168\u6258\u7ba1\u7684\u6570\u636e\u5e93\u670d\u52a1\uff0c\u63d0\u4f9b\u9ad8\u53ef\u6269\u5c55\u6027\u548c\u6613\u7528\u6027\u3002<\/td>\n<\/tr>\n<tr>\n<td>MongoDB \u4f01\u4e1a\u7248<\/td>\n<td>MongoDB \u7684\u5546\u4e1a\u7248\u672c\uff0c\u63d0\u4f9b\u9ad8\u7ea7\u5b89\u5168\u6027\u3001\u76d1\u63a7\u548c\u652f\u6301\u9009\u9879\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4f7f\u7528 MongoDB \u7684\u65b9\u6cd5\u3001\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/h3>\n<p>MongoDB \u53d1\u73b0\u8de8\u591a\u4e2a\u9886\u57df\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u5185\u5bb9\u7ba1\u7406\u7cfb\u7edf\uff1a<\/strong> MongoDB \u7684\u65e0\u6a21\u5f0f\u8bbe\u8ba1\u975e\u5e38\u9002\u5408\u7ba1\u7406\u52a8\u6001\u5185\u5bb9\uff0c\u4f8b\u5982\u6587\u7ae0\u3001\u7528\u6237\u914d\u7f6e\u6587\u4ef6\u548c\u591a\u5a92\u4f53\u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7269\u8054\u7f51\uff08\u7269\u8054\u7f51\uff09\uff1a<\/strong> MongoDB\u53ef\u4ee5\u9ad8\u6548\u5904\u7406\u7269\u8054\u7f51\u8bbe\u5907\u4ea7\u751f\u7684\u6d77\u91cf\u6570\u636e\uff0c\u5b9e\u73b0\u5b9e\u65f6\u5206\u6790\u548c\u51b3\u7b56\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5927\u6570\u636e\u548c\u5206\u6790\uff1a<\/strong> MongoDB \u5b58\u50a8\u548c\u67e5\u8be2\u5927\u578b\u6570\u636e\u96c6\u7684\u80fd\u529b\u4f7f\u5176\u6210\u4e3a\u6570\u636e\u5206\u6790\u548c\u62a5\u544a\u7684\u5b9d\u8d35\u5de5\u5177\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff1a<\/strong> \u5b83\u4f5c\u4e3a\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u540e\u7aef\u6570\u636e\u5e93\uff0c\u5141\u8bb8\u65e0\u7f1d\u6570\u636e\u540c\u6b65\u548c\u79bb\u7ebf\u8bbf\u95ee\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u7136\u800c\uff0cMongoDB \u786e\u5b9e\u9762\u4e34\u7740\u4e00\u7cfb\u5217\u6311\u6218\uff0c\u4f8b\u5982\u6570\u636e\u4e00\u81f4\u6027\u548c\u590d\u6742\u67e5\u8be2\uff0c\u8fd9\u53ef\u80fd\u9700\u8981\u4ed4\u7ec6\u8003\u8651\u548c\u89c4\u5212\u3002\u89e3\u51b3\u65b9\u6848\u5305\u62ec\u6570\u636e\u5efa\u6a21\u3001\u7d22\u5f15\u4ee5\u53ca\u5fc5\u8981\u65f6\u4f7f\u7528\u4e8b\u52a1\u3002<\/p>\n<h3>\u4e3b\u8981\u7279\u70b9\u53ca\u6bd4\u8f83<\/h3>\n<p>\u8ba9\u6211\u4eec\u5c06 MongoDB \u4e0e\u6570\u636e\u5e93\u4e16\u754c\u4e2d\u7684\u4e00\u4e9b\u7c7b\u4f3c\u672f\u8bed\u8fdb\u884c\u6bd4\u8f83\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7279\u5f81<\/th>\n<th>MongoDB<\/th>\n<th>\u4f20\u7edf\u5173\u7cfb\u578b\u6570\u636e\u5e93<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u6570\u636e\u6a21\u578b<\/td>\n<td>\u9762\u5411\u6587\u6863<\/td>\n<td>\u57fa\u4e8e\u8868\u683c<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u6269\u5c55\u6027<\/td>\n<td>\u6c34\u5e73\u7f29\u653e<\/td>\n<td>\u5782\u76f4\u7f29\u653e<\/td>\n<\/tr>\n<tr>\n<td>\u6a21\u5f0f\u7075\u6d3b\u6027<\/td>\n<td>\u7075\u6d3b\u7684\u6a21\u5f0f\uff08\u65e0\u6a21\u5f0f\uff09<\/td>\n<td>\u521a\u6027\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>\u4e00\u81f4\u6027<\/td>\n<td>\u6700\u7ec8\u4e00\u81f4\u6027<\/td>\n<td>\u4e00\u81f4\u6027\u5f3a<\/td>\n<\/tr>\n<tr>\n<td>\u67e5\u8be2\u8bed\u8a00<\/td>\n<td>\u4e30\u5bcc\u7684\u67e5\u8be2\u8bed\u8a00<\/td>\n<td>SQL<\/td>\n<\/tr>\n<tr>\n<td>\u9178\u6027\u4e8b\u52a1<\/td>\n<td>\u652f\u6301\u591a\u6587\u6863\u4ea4\u6613<\/td>\n<td>\u652f\u6301\u7684<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u524d\u666f\u548c\u672a\u6765\u6280\u672f<\/h3>\n<p>MongoDB \u7684\u672a\u6765\u770b\u8d77\u6765\u5145\u6ee1\u5e0c\u671b\uff0c\u5728\u4ee5\u4e0b\u9886\u57df\u4e0d\u65ad\u53d1\u5c55\uff1a<\/p>\n<ul>\n<li>\n<p><strong>\u591a\u6587\u6863 ACID \u4e8b\u52a1\uff1a<\/strong> \u589e\u5f3a\u5bf9\u590d\u6742\u4e8b\u52a1\u7684\u652f\u6301\uff0c\u4ee5\u6ee1\u8db3\u5173\u952e\u4efb\u52a1\u5e94\u7528\u7a0b\u5e8f\u7684\u9700\u6c42\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u65e0\u670d\u52a1\u5668\u8ba1\u7b97\uff1a<\/strong> \u4e0e\u65e0\u670d\u52a1\u5668\u5e73\u53f0\u96c6\u6210\uff0c\u4e3a\u73b0\u4ee3\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u9ad8\u6548\u4e14\u7ecf\u6d4e\u9ad8\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u4eba\u5de5\u667a\u80fd\u548c\u673a\u5668\u5b66\u4e60\u96c6\u6210\uff1a<\/strong> \u5229\u7528 MongoDB \u5728 AI \u548c ML \u5e94\u7528\u7a0b\u5e8f\u4e2d\u8fdb\u884c\u6570\u636e\u5b58\u50a8\u548c\u68c0\u7d22\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>\u4ee3\u7406\u670d\u52a1\u5668\u5982\u4f55\u4e0e MongoDB \u4e00\u8d77\u4f7f\u7528<\/h2>\n<p>\u4ee3\u7406\u670d\u52a1\u5668\u5728\u589e\u5f3a MongoDB \u90e8\u7f72\u7684\u5b89\u5168\u6027\u548c\u6027\u80fd\u65b9\u9762\u53d1\u6325\u7740\u81f3\u5173\u91cd\u8981\u7684\u4f5c\u7528\u3002\u4ee5\u4e0b\u662f\u4ee3\u7406\u670d\u52a1\u5668\u4e0e MongoDB \u7ed3\u5408\u4f7f\u7528\u7684\u4e00\u4e9b\u65b9\u6cd5\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u8d1f\u8f7d\u5747\u8861\uff1a<\/strong> \u4ee3\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u5728\u591a\u4e2a MongoDB \u5b9e\u4f8b\u4e4b\u95f4\u5206\u914d\u4f20\u5165\u7684\u5ba2\u6237\u7aef\u8bf7\u6c42\uff0c\u786e\u4fdd\u5747\u5300\u5206\u914d\u5de5\u4f5c\u8d1f\u8f7d\u5e76\u9632\u6b62\u5355\u4e2a\u670d\u52a1\u5668\u8fc7\u8f7d\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u5168\uff1a<\/strong> \u4ee3\u7406\u670d\u52a1\u5668\u901a\u8fc7\u9690\u85cf\u5185\u90e8 MongoDB \u57fa\u7840\u8bbe\u65bd\u4ee5\u9632\u6b62\u5916\u90e8\u8bbf\u95ee\uff0c\u5145\u5f53\u9644\u52a0\u7684\u5b89\u5168\u5c42\u3002\u4ed6\u4eec\u8fd8\u53ef\u4ee5\u5f3a\u5236\u6267\u884c\u8eab\u4efd\u9a8c\u8bc1\u548c\u8bbf\u95ee\u63a7\u5236\u7b56\u7565\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u7f13\u5b58\uff1a<\/strong> \u4ee3\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u7f13\u5b58\u9891\u7e41\u8bbf\u95ee\u7684\u6570\u636e\uff0c\u4ece\u800c\u51cf\u5c11 MongoDB \u6570\u636e\u5e93\u7684\u8d1f\u8f7d\u5e76\u7f29\u77ed\u8bfb\u53d6\u7e41\u91cd\u5de5\u4f5c\u8d1f\u8f7d\u7684\u54cd\u5e94\u65f6\u95f4\u3002<\/p>\n<\/li>\n<li>\n<p><strong>\u8bb0\u5f55\u548c\u76d1\u63a7\uff1a<\/strong> \u4ee3\u7406\u670d\u52a1\u5668\u53ef\u4ee5\u8bb0\u5f55\u4f20\u5165\u8bf7\u6c42\u5e76\u76d1\u63a7 MongoDB \u5b9e\u4f8b\u7684\u8fd0\u884c\u72b6\u51b5\u548c\u6027\u80fd\uff0c\u4ece\u800c\u5e2e\u52a9\u8fdb\u884c\u6545\u969c\u6392\u9664\u548c\u4f18\u5316\u5de5\u4f5c\u3002<\/p>\n<\/li>\n<\/ol>\n<h2>\u76f8\u5173\u94fe\u63a5<\/h2>\n<p>\u6709\u5173 MongoDB \u7684\u66f4\u6df1\u5165\u4fe1\u606f\uff0c\u60a8\u53ef\u4ee5\u63a2\u7d22\u4ee5\u4e0b\u8d44\u6e90\uff1a<\/p>\n<ul>\n<li>\n<p><a target=\"_new\" rel=\"noopener\">MongoDB \u5b98\u65b9\u6587\u6863<\/a>\uff1a\u5b98\u65b9\u6587\u6863\u63d0\u4f9b\u4e86 MongoDB \u5404\u4e2a\u65b9\u9762\u7684\u5168\u9762\u6307\u5357\u3001\u6559\u7a0b\u548c\u53c2\u8003\u8d44\u6599\u3002<\/p>\n<\/li>\n<li>\n<p><a target=\"_new\" rel=\"noopener\">MongoDB\u5927\u5b66<\/a>\uff1aMongoDB \u63d0\u4f9b\u514d\u8d39\u5728\u7ebf\u8bfe\u7a0b\uff0c\u5e2e\u52a9\u60a8\u638c\u63e1 MongoDB \u5e76\u4e86\u89e3\u6700\u65b0\u52a8\u6001\u3002<\/p>\n<\/li>\n<li>\n<p><a target=\"_new\" rel=\"noopener\">MongoDB \u793e\u533a\u8bba\u575b<\/a>\uff1a\u4e0e MongoDB \u793e\u533a\u4e92\u52a8\uff0c\u5bfb\u6c42\u5efa\u8bae\u3001\u5206\u4eab\u7ecf\u9a8c\u5e76\u83b7\u5f97\u95ee\u9898\u7684\u7b54\u6848\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u603b\u4e4b\uff0cMongoDB \u662f\u4e00\u4e2a\u5f3a\u5927\u4e14\u591a\u529f\u80fd\u7684\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u4e0d\u65ad\u53d1\u5c55\u4ee5\u6ee1\u8db3\u73b0\u4ee3\u5e94\u7528\u7a0b\u5e8f\u7684\u9700\u6c42\u3002\u65e0\u8bba\u60a8\u662f\u5f00\u53d1\u5c0f\u578b\u9879\u76ee\u8fd8\u662f\u5927\u578b\u4f01\u4e1a\u5e94\u7528\u7a0b\u5e8f\uff0cMongoDB \u90fd\u80fd\u63d0\u4f9b\u6210\u529f\u6240\u9700\u7684\u7075\u6d3b\u6027\u3001\u53ef\u6269\u5c55\u6027\u548c\u6027\u80fd\u3002<\/p>","protected":false},"featured_media":579717,"menu_order":0,"template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"class_list":["post-579716","glossary","type-glossary","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/proxyelite.info\/cn\/wp-json\/wp\/v2\/glossary\/579716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/proxyelite.info\/cn\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/proxyelite.info\/cn\/wp-json\/wp\/v2\/types\/glossary"}],"version-history":[{"count":0,"href":"https:\/\/proxyelite.info\/cn\/wp-json\/wp\/v2\/glossary\/579716\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/proxyelite.info\/cn\/wp-json\/wp\/v2\/media\/579717"}],"wp:attachment":[{"href":"https:\/\/proxyelite.info\/cn\/wp-json\/wp\/v2\/media?parent=579716"}],"curies":[{"name":"\u53ef\u6e7f\u6027\u7c89\u5242","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}