{"id":1678,"date":"2025-02-15T18:52:03","date_gmt":"2025-02-15T10:52:03","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=1678"},"modified":"2025-02-15T19:37:34","modified_gmt":"2025-02-15T11:37:34","slug":"%e6%b7%b1%e5%85%a5%e4%ba%86%e8%a7%a3-mongodb%ef%bc%9a%e6%96%87%e6%a1%a3%e5%9e%8b-nosql-%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%8e%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/02\/15\/%e6%b7%b1%e5%85%a5%e4%ba%86%e8%a7%a3-mongodb%ef%bc%9a%e6%96%87%e6%a1%a3%e5%9e%8b-nosql-%e6%95%b0%e6%8d%ae%e5%ba%93%e7%9a%84%e5%ba%94%e7%94%a8%e4%b8%8e%e4%bd%bf%e7%94%a8\/","title":{"rendered":"\u6df1\u5165\u4e86\u89e3 MongoDB\uff1a\u6587\u6863\u578b NoSQL \u6570\u636e\u5e93\u7684\u5e94\u7528\u4e0e\u4f7f\u7528"},"content":{"rendered":"\r\n<h2 class=\"wp-block-heading\">1. MongoDB \u57fa\u7840<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">MongoDB \u662f\u4e00\u4e2a\u5f00\u6e90\u3001\u6587\u6863\u578b\u7684 NoSQL \u6570\u636e\u5e93\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5927\u6570\u636e\u5904\u7406\u3001\u5b9e\u65f6\u5206\u6790\u4ee5\u53ca\u52a8\u6001\u53d8\u5316\u7684 Web \u5e94\u7528\u4e2d\u3002\u4e0e\u4f20\u7edf\u7684\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e0d\u540c\uff0cMongoDB \u5b58\u50a8\u6570\u636e\u4e3a BSON \u683c\u5f0f\uff08\u7c7b\u4f3c JSON \u683c\u5f0f\uff09\uff0c\u5177\u6709\u9ad8\u53ef\u6269\u5c55\u6027\u548c\u9ad8\u6027\u80fd\uff0c\u975e\u5e38\u9002\u5408\u7528\u4e8e\u5904\u7406\u5927\u91cf\u975e\u7ed3\u6784\u5316\u548c\u534a\u7ed3\u6784\u5316\u6570\u636e\u3002MongoDB \u652f\u6301\u4e30\u5bcc\u7684\u67e5\u8be2\u3001\u7d22\u5f15\u548c\u805a\u5408\u529f\u80fd\uff0c\u662f\u5f00\u53d1\u4eba\u5458\u5728\u6784\u5efa Web \u5e94\u7528\u65f6\u7684\u9996\u9009\u6570\u636e\u5e93\u4e4b\u4e00\u3002<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">2. \u6570\u636e\u6a21\u578b\u4e0e\u96c6\u5408\uff08Collections\uff09<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">MongoDB \u4f7f\u7528\u6570\u636e\u6a21\u578b\u6765\u8868\u793a\u6570\u636e\u7ed3\u6784\u3002\u4e0e\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u7684\u8868\u683c\u4e0d\u540c\uff0cMongoDB \u5c06\u6570\u636e\u5b58\u50a8\u4e3a\u201c\u96c6\u5408\u201d\uff08Collections\uff09\u3002\u6bcf\u4e2a\u96c6\u5408\u5305\u542b\u591a\u4e2a\u201c\u6587\u6863\u201d\uff08Documents\uff09\uff0c\u7c7b\u4f3c\u4e8e\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u7684\u884c\u3002\u96c6\u5408\u4e2d\u7684\u6587\u6863\u4e0d\u9700\u8981\u6709\u76f8\u540c\u7684\u7ed3\u6784\uff0c\u5141\u8bb8\u7075\u6d3b\u5b58\u50a8\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u3002<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u96c6\u5408\uff08Collection\uff09<\/strong>\uff1a\u76f8\u5f53\u4e8e\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u7684\u8868\uff08Table\uff09\uff0c\u4f46\u6ca1\u6709\u9884\u5b9a\u4e49\u7684 Schema\u3002<\/li>\r\n\r\n\r\n\r\n<li><strong>\u6587\u6863\uff08Document\uff09<\/strong>\uff1a\u76f8\u5f53\u4e8e\u5173\u7cfb\u578b\u6570\u636e\u5e93\u4e2d\u7684\u884c\uff08Row\uff09\uff0c\u4ee5 BSON \u683c\u5f0f\uff08\u7c7b\u4f3c JSON\uff09\u5b58\u50a8\u6570\u636e\u3002<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">3. \u6587\u6863\uff08Documents\uff09\u4e0e JSON \u683c\u5f0f<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">MongoDB \u4f7f\u7528 BSON \u683c\u5f0f\u5b58\u50a8\u6587\u6863\uff0cBSON \u662f\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684 JSON\uff0c\u56e0\u6b64\u5b83\u652f\u6301\u5d4c\u5957\u6570\u636e\u548c\u7075\u6d3b\u7684\u6570\u636e\u7ed3\u6784\u3002\u6587\u6863\u4e2d\u7684\u5b57\u6bb5\uff08Field\uff09\u53ef\u4ee5\u5305\u542b\u5404\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5982\u5b57\u7b26\u4e32\u3001\u6574\u6570\u3001\u65e5\u671f\u3001\u6570\u7ec4\u7b49\u3002\u6b64\u5916\uff0cMongoDB \u5141\u8bb8\u5d4c\u5957\u6587\u6863\u548c\u6570\u7ec4\uff0c\u8fd9\u4f7f\u5f97\u5b83\u80fd\u591f\u9ad8\u6548\u5730\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u6a21\u578b\u3002<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u793a\u4f8b\u6587\u6863\uff08Document\uff09<\/strong>\uff1a<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>  {\r\n    \"_id\": ObjectId(\"60e7dbd6e8d5f74c8b0f27d3\"),\r\n    \"title\": \"MongoDB Basics\",\r\n    \"author\": \"John Doe\",\r\n    \"tags\": [\"database\", \"NoSQL\"],\r\n    \"content\": \"MongoDB is a NoSQL database.\",\r\n    \"date\": ISODate(\"2021-07-14T00:00:00Z\")\r\n  }<\/code><\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">4. CRUD \u64cd\u4f5c\uff1a\u63d2\u5165\u3001\u67e5\u8be2\u3001\u66f4\u65b0\u3001\u5220\u9664<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u5728 MongoDB \u4e2d\uff0c\u5e38\u7528\u7684\u6570\u636e\u5e93\u64cd\u4f5c\u5305\u62ec\u63d2\u5165\uff08Create\uff09\u3001\u67e5\u8be2\uff08Read\uff09\u3001\u66f4\u65b0\uff08Update\uff09\u548c\u5220\u9664\uff08Delete\uff09\u3002MongoDB \u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u67e5\u8be2\u8bed\u8a00\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u8fdb\u884c\u590d\u6742\u7684\u6570\u636e\u64cd\u4f5c\u3002<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u63d2\u5165\u6587\u6863\uff08Insert\uff09<\/strong>\uff1a<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>  db.articles.insertOne({ title: \"MongoDB Basics\", author: \"John Doe\", tags: [\"NoSQL\"] });<\/code><\/pre>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u67e5\u8be2\u6587\u6863\uff08Find\uff09<\/strong>\uff1a<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>  db.articles.find({ author: \"John Doe\" });<\/code><\/pre>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u66f4\u65b0\u6587\u6863\uff08Update\uff09<\/strong>\uff1a<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>  db.articles.updateOne({ _id: ObjectId(\"60e7dbd6e8d5f74c8b0f27d3\") }, { $set: { title: \"MongoDB Advanced\" } });<\/code><\/pre>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u5220\u9664\u6587\u6863\uff08Delete\uff09<\/strong>\uff1a<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>  db.articles.deleteOne({ _id: ObjectId(\"60e7dbd6e8d5f74c8b0f27d3\") });<\/code><\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">5. \u6570\u636e\u7d22\u5f15\u4e0e\u6027\u80fd\u4f18\u5316<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u4e3a\u4e86\u63d0\u9ad8\u67e5\u8be2\u6027\u80fd\uff0cMongoDB \u652f\u6301\u5bf9\u5b57\u6bb5\u521b\u5efa\u7d22\u5f15\u3002\u7d22\u5f15\u5728\u6570\u636e\u5e93\u4e2d\u50cf\u4e66\u7c4d\u7684\u76ee\u5f55\u4e00\u6837\uff0c\u80fd\u591f\u52a0\u901f\u7279\u5b9a\u5b57\u6bb5\u7684\u67e5\u8be2\u3002MongoDB \u63d0\u4f9b\u4e86\u591a\u79cd\u7d22\u5f15\u7c7b\u578b\uff0c\u5982\u5355\u5b57\u6bb5\u7d22\u5f15\u3001\u590d\u5408\u7d22\u5f15\u3001\u5730\u7406\u7a7a\u95f4\u7d22\u5f15\u7b49\u3002<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u521b\u5efa\u7d22\u5f15<\/strong>\uff1a<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>  db.articles.createIndex({ title: 1 });  \/\/ \u521b\u5efa\u5355\u5b57\u6bb5\u7d22\u5f15<\/code><\/pre>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u6027\u80fd\u4f18\u5316<\/strong>\uff1a\u5728\u6570\u636e\u91cf\u5927\u3001\u67e5\u8be2\u590d\u6742\u65f6\uff0c\u9002\u5f53\u4f7f\u7528\u7d22\u5f15\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u67e5\u8be2\u6548\u7387\u3002\u7136\u800c\uff0c\u8fc7\u591a\u7684\u7d22\u5f15\u4f1a\u5f71\u54cd\u5199\u64cd\u4f5c\u7684\u6027\u80fd\uff0c\u56e0\u6b64\u9700\u8981\u5728\u6027\u80fd\u548c\u7d22\u5f15\u4e4b\u95f4\u505a\u51fa\u5e73\u8861\u3002<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">6. MongoDB \u6570\u636e\u5e93\u8bbe\u8ba1<\/h2>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">1\u3001<strong>\u6570\u636e\u5efa\u6a21\u4e0e\u6a21\u5f0f\u8bbe\u8ba1<\/strong><\/h3>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">MongoDB \u662f\u65e0\u6a21\u5f0f\uff08schema-less\uff09\u7684\uff0c\u8fd9\u610f\u5473\u7740\u6bcf\u4e2a\u6587\u6863\u53ef\u4ee5\u6709\u4e0d\u540c\u7684\u5b57\u6bb5\u3002\u8bbe\u8ba1\u6570\u636e\u6a21\u578b\u65f6\uff0c\u9700\u6839\u636e\u5b9e\u9645\u5e94\u7528\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5efa\u6a21\u65b9\u5f0f\u3002\u4e3b\u8981\u7684\u8bbe\u8ba1\u6a21\u5f0f\u5305\u62ec\uff1a<\/p>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u5d4c\u5957\u6587\u6863\uff08Embedded Documents\uff09<\/strong>\uff1a\u9002\u7528\u4e8e\u4e00\u5bf9\u591a\u5173\u7cfb\uff0c\u5d4c\u5957\u6587\u6863\u63d0\u9ad8\u4e86\u6570\u636e\u8bbf\u95ee\u7684\u6548\u7387\uff0c\u4f46\u53ef\u80fd\u5bfc\u81f4\u6570\u636e\u5197\u4f59\u3002<\/li>\r\n\r\n\r\n\r\n<li><strong>\u5f15\u7528\uff08References\uff09<\/strong>\uff1a\u9002\u7528\u4e8e\u591a\u5bf9\u591a\u5173\u7cfb\uff0c\u53ef\u4ee5\u907f\u514d\u6570\u636e\u5197\u4f59\uff0c\u4f46\u4f1a\u589e\u52a0\u67e5\u8be2\u590d\u6742\u5ea6\u3002<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">2\u3001<strong>\u5d4c\u5957\u6587\u6863\u4e0e\u5f15\u7528<\/strong><\/h3>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u5d4c\u5957\u6587\u6863<\/strong>\uff1a\u9002\u7528\u4e8e\u76f8\u5173\u6570\u636e\u4e00\u8d77\u5b58\u50a8\uff0c\u5982\u7528\u6237\u548c\u8ba2\u5355\u4fe1\u606f\u5d4c\u5957\u5b58\u50a8\u3002<\/li>\r\n\r\n\r\n\r\n<li><strong>\u5f15\u7528<\/strong>\uff1a\u9002\u7528\u4e8e\u9700\u8981\u72ec\u7acb\u5b58\u50a8\u7684\u591a\u5bf9\u591a\u5173\u7cfb\uff0c\u5982\u7528\u6237\u548c\u6587\u7ae0\u4e4b\u95f4\u7684\u5173\u7cfb\u53ef\u4ee5\u901a\u8fc7\u5f15\u7528\u6765\u5b9e\u73b0\u3002<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">7. \u6570\u636e\u805a\u5408\uff1a\u805a\u5408\u7ba1\u9053\uff08Aggregation Pipeline\uff09<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">MongoDB \u63d0\u4f9b\u5f3a\u5927\u7684\u6570\u636e\u805a\u5408\u529f\u80fd\uff0c\u53ef\u4ee5\u5bf9\u6570\u636e\u8fdb\u884c\u590d\u6742\u7684\u5904\u7406\u548c\u5206\u6790\u3002\u805a\u5408\u7ba1\u9053\uff08Aggregation Pipeline\uff09\u5141\u8bb8\u7528\u6237\u6309\u7167\u4e00\u5b9a\u7684\u987a\u5e8f\u6267\u884c\u4e00\u7cfb\u5217\u64cd\u4f5c\uff0c\u5982\u8fc7\u6ee4\u3001\u5206\u7ec4\u3001\u6392\u5e8f\u548c\u8ba1\u7b97\u3002\u5e38\u7528\u7684\u805a\u5408\u64cd\u4f5c\u5305\u62ec <code>$match<\/code>\uff08\u8fc7\u6ee4\uff09\u3001<code>$group<\/code>\uff08\u5206\u7ec4\uff09\u3001<code>$sort<\/code>\uff08\u6392\u5e8f\uff09\u3001<code>$project<\/code>\uff08\u6295\u5f71\uff09\u7b49\u3002<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u793a\u4f8b\u805a\u5408\u64cd\u4f5c<\/strong>\uff1a<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>  db.orders.aggregate([\r\n    { $match: { status: \"completed\" } },\r\n    { $group: { _id: \"$product\", total: { $sum: \"$quantity\" } } },\r\n    { $sort: { total: -1 } }\r\n  ]);<\/code><\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">8. \u6570\u636e\u4e00\u81f4\u6027\u4e0e\u4e8b\u52a1\u652f\u6301<\/h2>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">MongoDB \u63d0\u4f9b\u4e86\u7075\u6d3b\u7684\u6570\u636e\u4e00\u81f4\u6027\u6a21\u578b\u3002\u5728\u9ed8\u8ba4\u7684\u60c5\u51b5\u4e0b\uff0cMongoDB \u4f7f\u7528\u6700\u7ec8\u4e00\u81f4\u6027\u6a21\u578b\uff0c\u4f46\u5b83\u4e5f\u652f\u6301\u4e8b\u52a1\uff0c\u4ee5\u786e\u4fdd\u591a\u6587\u6863\u64cd\u4f5c\u7684\u4e00\u81f4\u6027\u3002MongoDB 4.0 \u5f15\u5165\u4e86\u591a\u6587\u6863 ACID \u4e8b\u52a1\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u5728\u591a\u4e2a\u6587\u6863\u4e0a\u6267\u884c\u539f\u5b50\u64cd\u4f5c\u3002<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li><strong>\u5f00\u542f\u4e8b\u52a1<\/strong>\uff1a<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>  const session = db.getMongo().startSession();\r\n  session.startTransaction();\r\n  try {\r\n    db.orders.updateOne({ _id: orderId }, { $set: { status: \"paid\" } });\r\n    db.products.updateOne({ _id: productId }, { $inc: { stock: -1 } });\r\n    session.commitTransaction();\r\n  } catch (error) {\r\n    session.abortTransaction();\r\n  }<\/code><\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\">9. \u5b9e\u8df5\u64cd\u4f5c<\/h2>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">1\u3001<strong>\u5b89\u88c5\u4e0e\u914d\u7f6e MongoDB<\/strong><\/h3>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>\u5728\u672c\u5730\u6216\u4e91\u670d\u52a1\u5668\u4e0a\u5b89\u88c5 MongoDB\uff0c\u53ef\u4ee5\u53c2\u8003\u5b98\u65b9\u6587\u6863\u8fdb\u884c\u5b89\u88c5\u548c\u914d\u7f6e\u3002<\/li>\r\n\r\n\r\n\r\n<li>\u914d\u7f6e MongoDB \u5b9e\u4f8b\uff0c\u786e\u4fdd\u6570\u636e\u5e93\u7684\u5b89\u5168\u6027\u548c\u9ad8\u53ef\u7528\u6027\u3002<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">2\u3001<strong>\u521b\u5efa\u6570\u636e\u5e93\u4e0e\u96c6\u5408\uff0c\u6267\u884c CRUD \u64cd\u4f5c<\/strong><\/h3>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u5e93\u548c\u96c6\u5408\uff0c\u5e76\u901a\u8fc7 MongoDB Shell \u6216 MongoDB Compass \u6267\u884c CRUD \u64cd\u4f5c\uff0c\u719f\u6089\u65e5\u5e38\u64cd\u4f5c\u6d41\u7a0b\u3002<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h3 class=\"wp-block-heading\">3\u3001<strong>\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u535a\u5ba2\u7cfb\u7edf<\/strong><\/h3>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u535a\u5ba2\u7cfb\u7edf\uff0c\u5176\u4e2d\u5305\u542b\u7528\u6237\u3001\u6587\u7ae0\u548c\u8bc4\u8bba\u529f\u80fd\uff0c\u7406\u89e3\u5982\u4f55\u4f7f\u7528 MongoDB \u6765\u5b58\u50a8\u4e0e\u67e5\u8be2\u590d\u6742\u7684\u6570\u636e\u5173\u7cfb\u3002<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u901a\u8fc7\u8fd9\u4e00\u90e8\u5206\u7684\u5b66\u4e60\uff0c\u4f60\u5c06\u638c\u63e1 MongoDB \u7684\u57fa\u672c\u64cd\u4f5c\u3001\u6570\u636e\u5efa\u6a21\u3001\u805a\u5408\u67e5\u8be2\u7b49\u6838\u5fc3\u529f\u80fd\uff0c\u80fd\u591f\u7075\u6d3b\u4f7f\u7528 MongoDB \u6784\u5efa\u5b9e\u9645\u5e94\u7528\u7cfb\u7edf\u3002<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>1. MongoDB \u57fa\u7840 MongoDB \u662f\u4e00\u4e2a\u5f00\u6e90\u3001\u6587\u6863\u578b\u7684 NoSQL \u6570\u636e\u5e93\uff0c\u5e7f\u6cdb\u5e94\u7528\u4e8e\u5927\u6570\u636e\u5904\u7406\u3001\u5b9e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72],"tags":[],"class_list":["post-1678","post","type-post","status-publish","format-standard","hentry","category-nosql"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1678","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=1678"}],"version-history":[{"count":2,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1678\/revisions"}],"predecessor-version":[{"id":1698,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/1678\/revisions\/1698"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=1678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=1678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=1678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}