{"id":63646,"date":"2024-10-14T01:17:12","date_gmt":"2024-10-13T17:17:12","guid":{"rendered":"https:\/\/server.hk\/cnblog\/63646\/"},"modified":"2024-10-14T01:17:12","modified_gmt":"2024-10-13T17:17:12","slug":"mongodb-ceo%e8%ab%87nosql%e7%9a%84%e5%a4%a7%e6%95%b8%e6%93%9a%e9%87%8f%e8%99%95%e7%90%86%e8%83%bd%e5%8a%9b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/63646\/","title":{"rendered":"MongoDB CEO\u8ac7NoSQL\u7684\u5927\u6578\u64da\u91cf\u8655\u7406\u80fd\u529b"},"content":{"rendered":"<h1 id=\"mongodb-ceo%e8%ab%87nosql%e7%9a%84%e5%a4%a7%e6%95%b8%e6%93%9a%e9%87%8f%e8%99%95%e7%90%86%e8%83%bd%e5%8a%9b-XQKVaCIWjW\">MongoDB CEO\u8ac7NoSQL\u7684\u5927\u6578\u64da\u91cf\u8655\u7406\u80fd\u529b<\/h1>\n<p>\u5728\u7576\u4eca\u6578\u64da\u9a45\u52d5\u7684\u4e16\u754c\u4e2d\uff0c\u4f01\u696d\u9762\u81e8\u8457\u524d\u6240\u672a\u6709\u7684\u6578\u64da\u91cf\u6311\u6230\u3002\u96a8\u8457\u6578\u64da\u7684\u5feb\u901f\u589e\u9577\uff0c\u50b3\u7d71\u7684\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u5728\u8655\u7406\u5927\u6578\u64da\u6642\u986f\u5f97\u529b\u4e0d\u5f9e\u5fc3\u3002MongoDB\u4f5c\u70ba\u4e00\u7a2e\u6d41\u884c\u7684NoSQL\u6578\u64da\u5eab\uff0c\u63d0\u4f9b\u4e86\u9748\u6d3b\u6027\u548c\u64f4\u5c55\u6027\uff0c\u6210\u70ba\u8a31\u591a\u4f01\u696d\u7684\u9996\u9078\u3002MongoDB\u7684CEO\u5728\u591a\u6b21\u5834\u5408\u4e2d\u5f37\u8abf\u4e86NoSQL\u5728\u5927\u6578\u64da\u91cf\u8655\u7406\u65b9\u9762\u7684\u512a\u52e2\uff0c\u672c\u6587\u5c07\u6df1\u5165\u63a2\u8a0e\u9019\u4e9b\u89c0\u9ede\u3002<\/p>\n<h2 id=\"nosql%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%a6%82%e5%bf%b5-XQKVaCIWjW\">NoSQL\u7684\u57fa\u672c\u6982\u5ff5<\/h2>\n<p>NoSQL\uff08Not Only SQL\uff09\u662f\u4e00\u7a2e\u975e\u95dc\u4fc2\u578b\u6578\u64da\u5eab\uff0c\u65e8\u5728\u89e3\u6c7a\u50b3\u7d71\u95dc\u4fc2\u578b\u6578\u64da\u5eab\u5728\u8655\u7406\u5927\u6578\u64da\u6642\u7684\u5c40\u9650\u6027\u3002NoSQL\u6578\u64da\u5eab\u901a\u5e38\u5177\u6709\u4ee5\u4e0b\u7279\u9ede\uff1a<\/p>\n<ul>\n<li><strong>\u9748\u6d3b\u7684\u6578\u64da\u6a21\u578b\uff1a<\/strong>\u652f\u6301\u591a\u7a2e\u6578\u64da\u7d50\u69cb\uff0c\u5982\u6587\u6a94\u3001\u9375\u503c\u3001\u5217\u65cf\u548c\u5716\u5f62\u3002<\/li>\n<li><strong>\u6c34\u5e73\u64f4\u5c55\uff1a<\/strong>\u53ef\u4ee5\u901a\u904e\u589e\u52a0\u66f4\u591a\u7684\u4f3a\u670d\u5668\u4f86\u64f4\u5c55\u7cfb\u7d71\uff0c\u800c\u4e0d\u50c5\u50c5\u662f\u63d0\u5347\u55ae\u4e00\u4f3a\u670d\u5668\u7684\u6027\u80fd\u3002<\/li>\n<li><strong>\u9ad8\u53ef\u7528\u6027\uff1a<\/strong>\u901a\u904e\u6578\u64da\u8907\u88fd\u548c\u5206\u7247\u6280\u8853\uff0c\u78ba\u4fdd\u6578\u64da\u7684\u6301\u4e45\u6027\u548c\u53ef\u7528\u6027\u3002<\/li>\n<\/ul>\n<h2 id=\"mongodb%e7%9a%84%e6%95%b8%e6%93%9a%e8%99%95%e7%90%86%e8%83%bd%e5%8a%9b-XQKVaCIWjW\">MongoDB\u7684\u6578\u64da\u8655\u7406\u80fd\u529b<\/h2>\n<p>MongoDB\u7684\u8a2d\u8a08\u7406\u5ff5\u662f\u70ba\u4e86\u61c9\u5c0d\u5927\u6578\u64da\u7684\u6311\u6230\u3002\u5176\u6587\u6a94\u5c0e\u5411\u7684\u6578\u64da\u6a21\u578b\u4f7f\u5f97\u6578\u64da\u7684\u5b58\u5132\u548c\u6aa2\u7d22\u66f4\u52a0\u9748\u6d3b\u3002MongoDB\u4f7f\u7528BSON\uff08Binary JSON\uff09\u683c\u5f0f\u4f86\u5b58\u5132\u6578\u64da\uff0c\u9019\u4f7f\u5f97\u6578\u64da\u53ef\u4ee5\u5305\u542b\u591a\u5c64\u5d4c\u5957\u7d50\u69cb\uff0c\u9069\u5408\u5b58\u5132\u8907\u96dc\u7684\u6578\u64da\u3002<\/p>\n<h3 id=\"%e6%95%b8%e6%93%9a%e5%88%86%e7%89%87-XQKVaCIWjW\">\u6578\u64da\u5206\u7247<\/h3>\n<p>MongoDB\u7684\u5206\u7247\u6280\u8853\u5141\u8a31\u7528\u6236\u5c07\u6578\u64da\u5206\u6563\u5230\u591a\u500b\u4f3a\u670d\u5668\u4e0a\uff0c\u9019\u6a23\u53ef\u4ee5\u6709\u6548\u5730\u8655\u7406\u5927\u91cf\u6578\u64da\u3002\u7576\u6578\u64da\u91cf\u589e\u9577\u6642\uff0c\u7cfb\u7d71\u53ef\u4ee5\u81ea\u52d5\u5c07\u6578\u64da\u5206\u7247\u5230\u4e0d\u540c\u7684\u4f3a\u670d\u5668\uff0c\u5f9e\u800c\u63d0\u9ad8\u67e5\u8a62\u6027\u80fd\u548c\u7cfb\u7d71\u7684\u6574\u9ad4\u53ef\u64f4\u5c55\u6027\u3002<\/p>\n<pre><code>db.runCommand({ shardCollection: \"mydb.mycollection\", key: { mykey: 1 } })<\/code><\/pre>\n<h3 id=\"%e9%ab%98%e5%8f%af%e7%94%a8%e6%80%a7%e5%92%8c%e6%95%85%e9%9a%9c%e8%bd%89%e7%a7%bb-XQKVaCIWjW\">\u9ad8\u53ef\u7528\u6027\u548c\u6545\u969c\u8f49\u79fb<\/h3>\n<p>MongoDB\u7684Replica Set\u529f\u80fd\u63d0\u4f9b\u4e86\u9ad8\u53ef\u7528\u6027\uff0c\u78ba\u4fdd\u5373\u4f7f\u5728\u4f3a\u670d\u5668\u6545\u969c\u7684\u60c5\u6cc1\u4e0b\uff0c\u6578\u64da\u4ecd\u7136\u53ef\u7528\u3002Replica Set\u7531\u4e00\u7d44MongoDB\u4f3a\u670d\u5668\u7d44\u6210\uff0c\u5176\u4e2d\u4e00\u500b\u662f\u4e3b\u4f3a\u670d\u5668\uff0c\u5176\u4ed6\u7684\u662f\u5f9e\u4f3a\u670d\u5668\u3002\u7576\u4e3b\u4f3a\u670d\u5668\u6545\u969c\u6642\uff0c\u7cfb\u7d71\u6703\u81ea\u52d5\u9078\u8209\u4e00\u500b\u65b0\u7684\u4e3b\u4f3a\u670d\u5668\uff0c\u78ba\u4fdd\u670d\u52d9\u7684\u6301\u7e8c\u6027\u3002<\/p>\n<pre><code>rs.initiate()<\/code><\/pre>\n<h2 id=\"%e5%af%a6%e9%9a%9b%e6%87%89%e7%94%a8%e6%a1%88%e4%be%8b-XQKVaCIWjW\">\u5be6\u969b\u61c9\u7528\u6848\u4f8b<\/h2>\n<p>\u8a31\u591a\u77e5\u540d\u4f01\u696d\u5df2\u7d93\u63a1\u7528\u4e86MongoDB\u4f86\u8655\u7406\u5176\u5927\u6578\u64da\u9700\u6c42\u3002\u4f8b\u5982\uff0cUber\u4f7f\u7528MongoDB\u4f86\u5b58\u5132\u548c\u5206\u6790\u5176\u7528\u6236\u6578\u64da\uff0c\u4ee5\u4fbf\u63d0\u4f9b\u66f4\u597d\u7684\u670d\u52d9\u548c\u9ad4\u9a57\u3002Netflix\u4e5f\u5229\u7528MongoDB\u4f86\u7ba1\u7406\u5176\u7528\u6236\u7684\u89c0\u770b\u6b77\u53f2\u548c\u63a8\u85a6\u7cfb\u7d71\uff0c\u5f9e\u800c\u63d0\u5347\u7528\u6236\u6eff\u610f\u5ea6\u3002<\/p>\n<h2 id=\"%e7%b5%90%e8%ab%96-XQKVaCIWjW\">\u7d50\u8ad6<\/h2>\n<p>MongoDB\u4f5c\u70ba\u4e00\u7a2eNoSQL\u6578\u64da\u5eab\uff0c\u6191\u85c9\u5176\u9748\u6d3b\u7684\u6578\u64da\u6a21\u578b\u3001\u9ad8\u53ef\u7528\u6027\u548c\u512a\u79c0\u7684\u64f4\u5c55\u6027\uff0c\u6210\u70ba\u8655\u7406\u5927\u6578\u64da\u7684\u7406\u60f3\u9078\u64c7\u3002\u96a8\u8457\u6578\u64da\u91cf\u7684\u6301\u7e8c\u589e\u9577\uff0c\u4f01\u696d\u9700\u8981\u5c0b\u627e\u66f4\u6709\u6548\u7684\u89e3\u6c7a\u65b9\u6848\u4f86\u7ba1\u7406\u548c\u5206\u6790\u6578\u64da\u3002MongoDB\u7121\u7591\u662f\u9019\u4e00\u9818\u57df\u4e2d\u7684\u4f7c\u4f7c\u8005\uff0c\u70ba\u4f01\u696d\u63d0\u4f9b\u4e86\u5f37\u5927\u7684\u6578\u64da\u8655\u7406\u80fd\u529b\u3002<\/p>\n<p>\u5982\u679c\u60a8\u5c0d\u65bc\u5982\u4f55\u5728\u60a8\u7684\u696d\u52d9\u4e2d\u5be6\u65bdMongoDB\u6216\u5176\u4ed6\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\u611f\u8208\u8da3\uff0c\u60a8\u53ef\u4ee5\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u4f86\u652f\u6301\u60a8\u7684\u6578\u64da\u9700\u6c42\uff0c\u7121\u8ad6\u662f\u5927\u6578\u64da\u5206\u6790\u9084\u662f\u65e5\u5e38\u6578\u64da\u7ba1\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MongoDB CEO discusses the powerful data handling capabilities of NoSQL for managing large-scale big data efficiently and effectively.<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-63646","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/63646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=63646"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/63646\/revisions"}],"predecessor-version":[{"id":63647,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/63646\/revisions\/63647"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=63646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=63646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=63646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}