{
  "version": "https://jsonfeed.org/version/1", 
  "title": "MongoDB", 
  "description": "MongoDB is a free and open-source cross-platform document-oriented database program.", 
  "home_page_url": "https://www.v2ex.com/go/mongodb", 
  "feed_url": "https://www.v2ex.com/feed/mongodb.json", 
  "icon": "https://cdn.v2ex.com/navatar/9dfc/d5e5/311_large.png?m=1646753668", 
  "favicon": "https://cdn.v2ex.com/navatar/9dfc/d5e5/311_normal.png?m=1646753668", 
  "items": [
    {
      "author": {
        "url": "https://www.v2ex.com/member/azhi2007", 
        "name": "azhi2007", 
        "avatar": "https://cdn.v2ex.com/avatar/20df/ce13/442824_large.png?m=1698109348"
      }, 
      "url": "https://www.v2ex.com/t/1187980", 
      "date_modified": "2026-01-23T23:16:38+00:00", 
      "content_html": "<p>\u5982\u9898\uff0cnode.js \u94fe\u63a5\u6570\u636e\u5e93\u62a5\u9519\uff1a</p>\n<p>\u2717 MongoDB connection failed: Error: queryTxt ETIMEOUT <a href=\"http://cluster0.ev5vqfk.mongodb.net\" rel=\"nofollow\">cluster0.ev5vqfk.mongodb.net</a>\nat QueryReqWrap.onresolve [as oncomplete] (node:internal/dns/promises:294:17) {\nerrno: undefined,\ncode: 'ETIMEOUT',\nsyscall: 'queryTxt',\nhostname: '<a href=\"http://cluster0.ev5vqfk.mongodb.net\" rel=\"nofollow\">cluster0.ev5vqfk.mongodb.net</a>'\n}</p>\n<p>\u4e0b\u9762\u662f\u6211\u6309\u7167\u5b98\u7f51\u914d\u7f6e\u7684\u6570\u636e\u5e93\u8bbf\u95ee\u7684 URL \uff0c\u5728\u6570\u636e\u5e93\u9875\u9762\u4e5f\u5df2\u6dfb\u52a0\u5f53\u524d IP \u5730\u5740\u8fdb\u767d\u540d\u5355\u4e86\nmongodb+srv://wdz_db_user:cbim2025@cluster0.ev5vqfk.mongodb.net/?appName=Cluster0</p>\n", 
      "date_published": "2026-01-23T15:38:20+00:00", 
      "title": "\u6c42\u52a9\uff0c\u8c01\u4f1a\u7528\u90a3\u4e2a mongoDB \u7684\u4e91\u6570\u636e\u5e93\u554a\uff0c\u5e2e\u770b\u770b\u548b\u94fe\u63a5\u62a5\u9519\u5462", 
      "id": "https://www.v2ex.com/t/1187980"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/zhengfan2016", 
        "name": "zhengfan2016", 
        "avatar": "https://cdn.v2ex.com/gravatar/df526f138d10cac8c95b274c720a6f55?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1167772", 
      "title": "mongodb \u81ea\u6258\u7ba1\u5230\u5e95\u652f\u6301 vector \u641c\u7d22\u5417", 
      "id": "https://www.v2ex.com/t/1167772", 
      "date_published": "2025-10-23T01:54:10+00:00", 
      "content_html": "<p>\u5982\u9898\uff0c\u867d\u7136\u6587\u6863\u6709\u81ea\u6258\u7ba1\u7684\u9009\u9879\uff0c\u4f46\u662f compass \u4e4b\u7c7b\u7684 gui \u6839\u672c\u5c31\u6ca1\u6709\u5bf9\u5e94\u7684\u9009\u9879\uff0c\u7136\u540e\u5f88\u591a\u64cd\u4f5c\u6587\u6863\u5199\u7684\u662f atlas gui \u6216\u8005 cli \u64cd\u4f5c\uff0c\u81ea\u6258\u7ba1\u597d\u50cf\u53ea\u80fd\u4f7f\u7528 mongosh</p>\n<p>\u6211\u770b github \u6709\u4e9b\u8bc4\u8bba\u8bf4 vector \u641c\u7d22\u662f\u4e91\u670d\u52a1\u72ec\u5360\u7684\u529f\u80fd\uff0c\u4e0d\u77e5\u9053 v2 \u6709\u6ca1\u6709\u4eba\u641e\u8fc7\u81ea\u90e8\u7f72\u7684\u7248\u672c, \u5982\u679c\u771f\u662f\u72ec\u5360\u529f\u80fd\u6211\u5c31\u4e0d\u6d6a\u8d39\u65f6\u95f4\uff0c\u6362 postgresql \u4e86</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamtuzi3333", 
        "name": "iamtuzi3333", 
        "avatar": "https://cdn.v2ex.com/gravatar/84ffc0a186f96fb0dfea0ca5fb100d3e?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1134875", 
      "date_modified": "2025-05-29T09:01:52+00:00", 
      "content_html": "\u5c0f\u5f1f\u73b0\u5728\u6709\u4e00\u4e2a Mongo \u6570\u636e\u5e93\uff0c\u5b58\u4e86\u51e0\u5341\u4e2a\u96c6\u5408\u8868\uff0c\u6bcf\u4e2a\u96c6\u5408\u6bcf\u79d2\u90fd\u63d2\u5165\u4e00\u4e2a json \u6570\u636e\uff0cjson \u6570\u636e\u4e2d\u6709\u4e00\u4e2a\u6d6e\u70b9\u6570\u6570\u7ec4\uff0c50 \u4e2a\u5143\u7d20\uff0c\u8fd8\u6709\u4e00\u4e2a\u5b57\u6bb5\u65f6\u95f4\u6233\uff0cint \u7c7b\u578b\uff0cunix \u65f6\u95f4\u503c\uff0c\u7136\u540e\u7ed9\u8fd9\u4e2a\u65f6\u95f4\u5b57\u6bb5\u5efa\u7acb\u4e86\u5347\u5e8f\u7d22\u5f15\uff0c\u4f46\u662f\u73b0\u5728\u53d1\u73b0\u6839\u636e\u8fd9\u4e2a\u5b57\u6bb5\u6765\u67e5\u8be2\u5386\u53f2\u65f6\u95f4\u7684\u6570\u636e\u6548\u7387\u5f88\u6162\uff0c\u5c31\u662f\u67e5\u8be2\u67d0\u4e00\u4e2a\u8303\u56f4\uff0c\u67e5\u8be2 4 \u6708\u4efd\u7684\u6570\u636e\u7528\u4e86 60 \u591a\u79d2\uff0c\u662f\u8fd9\u4e2a\u7d22\u5f15\u6548\u679c\u4e0d\u597d\u8fd8\u662f\u5565\u539f\u56e0\uff0c\u6709\u5927\u4f6c\u6307\u70b9\u4e0b\u4e48\uff0c\u60f3\u67e5\u8be2\u6570\u636e\u5feb\u70b9\u3002\u6c42\u6c42\u6c42\uff01\uff01\uff01", 
      "date_published": "2025-05-28T06:11:29+00:00", 
      "title": "\u5927\u4f6c\u4eec\uff0c\u6025\u9700\u8bf7\u6559\uff0c\u9047\u5230\u5927\u56f0\u96be", 
      "id": "https://www.v2ex.com/t/1134875"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Pbe2RsrnVcPrF", 
        "name": "Pbe2RsrnVcPrF", 
        "avatar": "https://cdn.v2ex.com/gravatar/8ccf1bbcd6b17973d788ef06cdfa4e62?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1078949", 
      "date_modified": "2024-10-13T09:47:31+00:00", 
      "content_html": "\u5927\u4f6c\u4eec\uff0cmongodb \u6709\u5565\u597d\u7528\u7684 GUI \u5de5\u5177\uff1f\u652f\u6301\u6570\u636e\u8fc1\u79fb\uff0c\u6570\u636e\u5b9e\u65f6\u540c\u6b65\uff0c\u6570\u636e\u5e93\u5bfc\u5165\u5bfc\u51fa\uff0c\u7528\u6237\u6743\u9650\u7ba1\u7406\u3002\u8bed\u8a00\u4e0a\u652f\u6301\u4e2d\u6587\u3002", 
      "date_published": "2024-10-10T08:56:19+00:00", 
      "title": "\u6709\u5565\u597d\u7528\u7684 mongodb GUI \u5de5\u5177", 
      "id": "https://www.v2ex.com/t/1078949"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamtuzi3333", 
        "name": "iamtuzi3333", 
        "avatar": "https://cdn.v2ex.com/gravatar/84ffc0a186f96fb0dfea0ca5fb100d3e?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1074136", 
      "title": "\u5927\u4f6c\u4eec\uff0c\u5927\u95ee\u9898\u8bf7\u6559\uff0c\u5185\u5b58\u5360\u6ee1", 
      "id": "https://www.v2ex.com/t/1074136", 
      "date_published": "2024-09-19T09:45:28+00:00", 
      "content_html": "\u5c0f\u5f1f\u7528 MongoDB \u5b58\u50a8\u5b9e\u65f6\u6570\u636e\uff0c\u90fd\u662f\u4f20\u611f\u5668\u6570\u636e\uff0c\u5341\u51e0\u4e2a\u4f20\u611f\u5668\uff0c\u6bcf\u79d2\u90fd\u6709\u6570\u636e\u53d1\u8fc7\u6765\uff0c\u9700\u8981\u5b9e\u65f6\u5b58\u50a8\uff0c\u76ee\u524d\u7528\u4e86\u4e00\u4e2a\u961f\u5217\u53bb\u4e00\u904d\u5b58\u4e00\u904d\u5165\u5e93\uff0c\u96c6\u5408\u90fd\u662f\u5206\u6563\u5f00\u7684\uff0c\u4f46\u662f\u53d1\u73b0\u4e00\u4e2a\u5f88\u4e25\u91cd\u7684\u95ee\u9898\u5c31\u662f\u4f1a\u628a\u670d\u52a1\u5668\u7684\u5907\u7528\u5185\u5b58\u6301\u7eed\u538b\u69a8\uff0c\u5bfc\u81f4\u53ef\u7528\u5185\u5b58\u8d8a\u6765\u8d8a\u5c0f\uff0c\u7528\u7684 Window Server \u670d\u52a1\u5668\uff0c192GB \u53ea\u5269\u4e0b\u5341\u51e0 M \uff0c\u53ef\u7528\u5185\u5b58\uff0c\u8fd9\u4e2a\u592a\u5938\u5f20\u4e86\uff0c\u800c\u4e14\u770b\u8fdb\u7a0b mongod.exe \u8fd9\u4e2a\u8fdb\u7a0b\u5360\u4e86 5 \u4e07\u591a MB \uff0c\u5f88\u5938\u5f20\uff0c\u76ee\u524d\u5c0f\u5f1f\u4e5f\u6ca1\u6709\u65b9\u6cd5\u80fd\u7acb\u9a6c\u6392\u67e5\u51fa\u6765\uff0c\u6709\u5927\u4f6c\u6709\u8fc7\u8fd9\u4e2a\u7ecf\u9a8c\u5417\uff0c\u8bf7\u5927\u4f6c\u6307\u6559\u4e00\u4e0b\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/drymonfidelia", 
        "name": "drymonfidelia", 
        "avatar": "https://cdn.v2ex.com/gravatar/017bcef6e642dbf067e17838a9cd447a?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1051501", 
      "title": "mongodump \u51fa\u6765\u7684\u6587\u4ef6\u4e3a\u4ec0\u4e48\u6bd4\u6570\u636e\u5e93\u672c\u8eab\u5927\u4e86\u4e00\u500d\u591a\uff1f\u6570\u636e\u5e93\u5927\u5c0f\u53ea\u6709 100GB\uff0c dump \u51fa\u6765\u7684 bson \u6709 242GB\uff0c\u786c\u76d8\u653e\u4e0d\u4e0b\u4e86\uff0c\u600e\u4e48\u4e0d\u5360\u7528\u786c\u76d8\u7a7a\u95f4\u5907\u4efd\u6570\u636e\u5230\u5176\u5b83\u673a\u5668\uff1f", 
      "id": "https://www.v2ex.com/t/1051501", 
      "date_published": "2024-06-21T07:12:36+00:00", 
      "content_html": ""
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamtuzi3333", 
        "name": "iamtuzi3333", 
        "avatar": "https://cdn.v2ex.com/gravatar/84ffc0a186f96fb0dfea0ca5fb100d3e?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1040767", 
      "date_modified": "2024-05-14T14:29:37+00:00", 
      "content_html": "\u5c0f\u5f1f\u76ee\u524d\u5728\u7528\u4e00\u4e2a Kafka \u4e3b\u9898\uff0c\u751f\u4ea7\u8005\u6bcf\u79d2\u53d1\u9001\u51e0\u5341\u6761\u6d88\u606f\uff0c\u6d88\u8d39\u8005\u8fd9\u8fb9\u6301\u7eed\u63a5\u6536\uff0c\u5e76\u4e14\u5b58\u5165\u540c\u4e00\u4e2a DB \u7684\u4e0d\u540c collection \uff0c\u4f46\u662f\u67e5\u9605\u4e86\u8d44\u6599\u5e76\u6ca1\u627e\u5230\u6709\u5355\u4e2a collection \u7684 document \u6570\u91cf\u7684\u9650\u5236\uff0c\u76ee\u524d\u6bcf\u79d2\u90fd\u4f1a\u5199\u5165\uff0c\u4e00\u5929\u5927\u6982\u5c31\u662f 80 \u591a k \u6761 document \u5199\u5165\u4e00\u4e2a collection \uff0c\u4e0d\u77e5\u9053\u80fd\u5426\u575a\u6301\u591a\u4e45\uff0c\u6709\u5927\u4f6c\u77e5\u9053\u5417", 
      "date_published": "2024-05-14T14:28:54+00:00", 
      "title": "\u60f3\u8bf7\u6559\u4e00\u4e0b\uff0c mongoDB \u662f\u5426\u9002\u5408\u6d77\u91cf\u6570\u636e\u5b58\u50a8", 
      "id": "https://www.v2ex.com/t/1040767"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/gosky", 
        "name": "gosky", 
        "avatar": "https://cdn.v2ex.com/gravatar/786267342d5e7b4c7bd7891c52200d49?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1037908", 
      "title": "MongoDB \u5982\u4f55\u4f18\u5316\u5230\u8ddf MySQL \u8d44\u6e90\u5360\u7528\u4e00\u6837\u4f4e\uff1f", 
      "id": "https://www.v2ex.com/t/1037908", 
      "date_published": "2024-05-06T00:14:21+00:00", 
      "content_html": "rt<br />\u4e3b\u8981\u662f\u6307\u51cf\u5c11\u5185\u5b58\u5360\u7528<br />\u5199\u5c11\u8bfb\u591a\uff0c\u7a0b\u5e8f\u5c42\u53ef\u4ee5\u53e6\u5916\u52a0\u7f13\u5b58\uff0c\u63a5\u53d7\u6027\u80fd\u6709\u6240\u4e0b\u964d"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/SevenNight2020", 
        "name": "SevenNight2020", 
        "avatar": "https://cdn.v2ex.com/gravatar/4df729d3834dfe1a0da8f002fa944c9e?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1033168", 
      "title": "\u65b0\u4eba\u5c0f\u767d\u6c42\u6559", 
      "id": "https://www.v2ex.com/t/1033168", 
      "date_published": "2024-04-17T02:24:18+00:00", 
      "content_html": "MongoDB \u4e0b\uff0c\u6211\u73b0\u5728\u6709\u4e24\u5f20\u8868\uff0c\u4e00\u5f20\u662f\u7fa4\u7ec4 group \u8868\uff0c\u4e00\u5f20\u662f\u7ec4\u5b50\u9879 item \u8868\uff0c\u73b0\u5728 group \u6709\u4e00\u4e2a online \u5b57\u6bb5\uff0citem \u4e5f\u6709\u4e00\u4e2a online \u5b57\u6bb5\uff0c\u6211\u5e0c\u671b\u5728 group \u4e0b\u7ebf\u7684\u65f6\u5019\u540c\u65f6\u66f4\u65b0\u5176\u4e0b\u6240\u6709\u7684 item \u4e5f\u4e0b\u7ebf  \u8fd9\u4e2a\u901a\u8fc7 MongoDB \u8981\u600e\u4e48\u5b9e\u73b0\u554a\uff0c\u8001\u54e5\u54e5\u4eec\u7ed9\u63d0\u4f9b\u70b9\u601d\u8def\u6216\u8005\u89e3\u51b3\u65b9\u6848\u5457\uff0c\u6211\u521a\u63a5\u89e6 MongoDB \uff0c\u6ca1\u5565\u7ecf\u9a8c"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/calmlyman", 
        "name": "calmlyman", 
        "avatar": "https://cdn.v2ex.com/avatar/d6ac/07bf/404326_large.png?m=1769481017"
      }, 
      "url": "https://www.v2ex.com/t/1024056", 
      "title": "mongodb \u65b0\u624b\u865a\u5fc3\u8bf7\u6559\u5927\u4f6c\u4eec", 
      "id": "https://www.v2ex.com/t/1024056", 
      "date_published": "2024-03-15T09:00:47+00:00", 
      "content_html": "<p>\u95ee\u9898\u573a\u666f\uff1a\n\u670d\u52a1\u7aef\u7528 nodejs+mongoose+node-schedule \u8dd1\u4e86\u4e9b\u5b9a\u65f6\u4efb\u52a1\uff0c\u6267\u884c bulkWrite \u64cd\u4f5c\uff0c\u4ee3\u7801\u5927\u6982\u5982\u4e0b\uff1a</p>\n<pre><code class=\"language-js\">updateOne: {\n  filter: {id: id},\n  update: {$set: item},\n  upsert: false\n}\n</code></pre>\n<p>\u5728\u67d0\u65f6\u523b\u8dd1\u592a\u591a\u4efb\u52a1\u65f6\uff0cmongodb \u5076\u53d1\u6027\u4f1a\u6302\u6389\uff0c\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\uff1a</p>\n<pre><code>MongoBulkWriteError: connection 20 to 127.0.0.1:27017 closed\n</code></pre>\n<p>\u8fd9\u65f6\u6211\u53ea\u80fd\u4e34\u65f6\u6267\u884c\u4e00\u4e0b<code>systemctl restart mongod</code>\u547d\u4ee4\u91cd\u542f\u4e00\u4e0b\u5c31\u597d\u4e86\uff0c\u8bf7\u95ee\u5927\u4f6c\u4eec\uff0c\u8fd9\u662f\u4e0d\u662f\u5199\u5165\u7684\u6570\u636e\u592a\u591a\u4e86\u8d85\u8fc7\u9650\u5236\u5462\uff1f\u662f\u4ec0\u4e48\u539f\u56e0\u5462\uff1f\u8be5\u5982\u4f55\u4f18\u5316\uff1f\u8c22\u8c22\uff01</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Belmode", 
        "name": "Belmode", 
        "avatar": "https://cdn.v2ex.com/avatar/58c3/16c0/312499_large.png?m=1748572228"
      }, 
      "url": "https://www.v2ex.com/t/1023136", 
      "title": "\u8bf7\u6559\u5927\u5bb6\u4e00\u4e2a mongodb \u5927\u6570\u636e\u91cf\u4e0b\uff0c count \u4f18\u5316\u7684\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/1023136", 
      "date_published": "2024-03-13T02:41:30+00:00", 
      "content_html": "\u95ee\u9898\u80cc\u666f\uff1a<br />  \u73b0\u5728\u6709\u4e2a\u4e00\u4e2a\u96c6\u5408\uff0c\u6bcf\u6708\u5927\u6982\u4f1a\u5f80\u91cc\u63d2\u5165\u5c06\u8fd1 600M \u7684\u6570\u636e\uff0c\u9879\u76ee\u9879\u76ee\u4e0a\u7ebf\u4e86\u5c06\u8fd1 4 \u4e2a\u6708\uff0c\u6709 2500W \u6570\u636e\uff0c\u73b0\u5728 count \u4e00\u6b21\uff0c\u9700\u8981\u5c06\u8fd1 1~2 \u5206\u949f\uff0c\u5373\u4f7f\u4f7f\u7528\u4e86\u5404\u7c7b\u7d22\u5f15\u4f18\u5316\uff0c\u8fd8\u662f\u6ca1\u4ec0\u4e48\u592a\u5927\u4f5c\u7528\u3002<br /><br />\u6211\u60f3\u8bf7\u6559\u4e00\u4e0b\u5927\u5bb6\uff0c\u9047\u5230\u8fd9\u4e2d\u60c5\u51b5\uff0c\u8be5\u5982\u4f55\u4f18\u5316\u5462\uff0c\u6216\u8005\u8bf4\uff0c\u6709\u4ec0\u4e48\u66f4\u5408\u9002\u7684\u65b9\u6848\u53bb\u5728\u8fd9\u79cd\u6570\u636e\u91cf\u4e0b\u8fdb\u884c count \u67e5\u8be2\u5462\uff1f<br /><br />\u8c22\u8c22\uff01"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/dapen", 
        "name": "dapen", 
        "avatar": "https://cdn.v2ex.com/avatar/3acb/b9d4/591779_large.png?m=1724207895"
      }, 
      "url": "https://www.v2ex.com/t/1022890", 
      "date_modified": "2024-03-12T07:17:59+00:00", 
      "content_html": "MongoDB \u6709\u4e00\u4e2a Document \uff0c\u5b83\u7684 Schema \u5982\u4e0b<br />{<br />    \"_id\": ObjectId  // \u4e3b\u952e<br />    \"status\": String<br />}<br />\u6570\u636e\u5e93\u91cc\u9762\u6709\u4e00\u6761\u6570\u636e<br />{<br />    \"_id\": 1,<br />    \"status\": \"waiting\"<br />}<br />\u73b0\u5728\u4e24\u4e2a\u7ebf\u7a0b A,B \uff0c\u7ebf\u7a0b A \u548c B \u5e76\u53d1\u6267\u884c findOneAndUpdate({\"_id\": \"1\", \"status\": \"waiting\"}, {$set: { \"status\": \"running\"}})<br />\u867d\u7136 findOneAndUpdate \u662f\u539f\u5b50\u64cd\u4f5c\uff0c\u4f46\u662f\u6709\u6ca1\u6709\u53ef\u80fd\u540c\u65f6\u67e5\u627e\u51fa\u8be5\u6587\u6863\u3002", 
      "date_published": "2024-03-12T07:14:56+00:00", 
      "title": "MongoDB \u7684 findOneAndUpdate \u5e76\u53d1\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/1022890"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/hlwjia", 
        "name": "hlwjia", 
        "avatar": "https://cdn.v2ex.com/avatar/faba/96b3/271162_large.png?m=1683819540"
      }, 
      "url": "https://www.v2ex.com/t/1015925", 
      "date_modified": "2024-02-17T04:30:32+00:00", 
      "content_html": "\u62a5\u9519\u662f\u8d85\u65f6<br /><br />\u60f3\u4e0d\u660e\u767d\u95ee\u9898\u5728\u54ea<br /><br />v2 - ray - x \u5ba2\u6237\u7aef\uff0c\u4ee3\u7406\u4e5f\u6ca1\u95ee\u9898\uff0c\u4e00\u76f4\u5728\u7528\u3002<br /><br />\u5e93\u548c\u94fe\u63a5\u7684 credentials \u90fd\u6ca1\u95ee\u9898\uff0c\u56e0\u4e3a\u6211\u5207\u6362\u5230\u624b\u673a\u7684 HK \u6d41\u91cf\uff0c\u4e0d\u8d70\u4ee3\u7406\uff0c\u5c31\u8e6d\u8e6d\u8fde\u4e0a\u4e86\u3002", 
      "date_published": "2024-02-16T16:12:13+00:00", 
      "title": "\u6c42\u52a9\u5927\u4f6c\u4eec\uff1a Mongo DB Compass \u52a0 socks5 \u4ee3\u7406\u8fde\u4e0d\u4e0a MongoDB Atlas \u4e0a\u7684\u5e93", 
      "id": "https://www.v2ex.com/t/1015925"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/nleg", 
        "name": "nleg", 
        "avatar": "https://cdn.v2ex.com/avatar/b4f3/f012/627508_large.png?m=1727515465"
      }, 
      "url": "https://www.v2ex.com/t/1012259", 
      "title": "\u5173\u4e8e\u8fdc\u7a0b mongodb \u6570\u636e\u540c\u6b65\u5230\u672c\u5730 Elasticsearch \u95ee\u9898", 
      "id": "https://www.v2ex.com/t/1012259", 
      "date_published": "2024-01-28T14:49:47+00:00", 
      "content_html": "\u56e0\u4e3a mongo \u5bf9\u641c\u7d22\u4e0d\u592a\u53cb\u597d\uff0c\u6211\u60f3\u642d\u5efa ES \u65b9\u4fbf\u641c\u7d22\uff0c\u4f46\u662f\u4e13\u95e8\u4e70\u4e2a\u670d\u52a1\u5668\u53c8\u592a\u8d35\u4e86\u3002\u3002<br /><br />\u6211\u60f3\u95ee\u4e00\u4e0b\u5927\u4f6c\u4eec\uff0c\u6709\u6ca1\u6709\u4ec0\u4e48\u65b9\u6848\u80fd\u591f\u6bcf\u6b21\u5f00\u673a\u90fd\u540c\u6b65\u8fdc\u7a0b mongodb \u6570\u636e\u5e93\u5230\u672c\u5730\u7684 ES \u4e2d\u3002\u3002<br /><br />\u8fd9\u6837\u6211\u5c31\u80fd\u5b9e\u73b0\u5728\u672c\u5730\u641c\u7d22\u4e86\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/manasheep", 
        "name": "manasheep", 
        "avatar": "https://cdn.v2ex.com/avatar/f4a1/8f48/227374_large.png?m=1708345875"
      }, 
      "url": "https://www.v2ex.com/t/996281", 
      "date_modified": "2023-11-29T10:58:42+00:00", 
      "content_html": "\u6c42\u6559\u3002<br />\u76ee\u524d\u670d\u52a1\u5668\u662f 4.0 \u7684\uff0c\u90e8\u7f72\u5728 win server \uff0c\u9047\u5230\u7684\u95ee\u9898\u662f\u8fd1\u671f\u5076\u5c14\u4f1a\u83ab\u540d\u5176\u5999\u7684 mongodb \u670d\u52a1\u505c\u6b62\uff0c\u5c31\u60f3\u770b\u4e00\u4e0b\u65e5\u5fd7\uff0c\u4f46\u662f\u53d1\u73b0\u65e5\u5fd7\u6709 55GB \uff0cVSCode \u6253\u5f00\u8bf4\u662f\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u90a3\u4e48\u7528\u4ec0\u4e48\u5de5\u5177\u80fd\u6bd4\u8f83\u597d\u7684\u8bfb\u53d6\u8be5\u65e5\u5fd7\u5462\uff1f<br />\u53e6\u5916\u53c8\u600e\u4e48\u9650\u5236\u65e5\u5fd7\u6587\u4ef6\u7684\u5927\u5c0f\u5462\uff1f\uff08\u6700\u597d\u80fd\u6309\u65e5\u671f\u5206\u522b\u5199\u5728\u5355\u72ec\u6587\u4ef6\u4e2d\uff0c\u80fd\u5b9e\u73b0\u5417\uff1f\uff09", 
      "date_published": "2023-11-29T09:02:30+00:00", 
      "title": "mongodb \u65e5\u5fd7\u6587\u4ef6\u5de8\u5927\uff0c\u600e\u4e48\u8bfb\u53d6\uff0c\u4ee5\u53ca\u600e\u4e48\u9650\u5236\u5176\u5927\u5c0f\uff1f", 
      "id": "https://www.v2ex.com/t/996281"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/sadfQED2", 
        "name": "sadfQED2", 
        "avatar": "https://cdn.v2ex.com/avatar/0878/5765/430437_large.png?m=1698062287"
      }, 
      "url": "https://www.v2ex.com/t/995990", 
      "title": "\u6c5f\u6e56\u6551\u6025\uff0c\u51b7\u5907\u6570\u636e\u6062\u590d", 
      "id": "https://www.v2ex.com/t/995990", 
      "date_published": "2023-11-28T09:23:49+00:00", 
      "content_html": "<p>\u6709\u4e00\u4efd 4 \u5e74\u524d\u7684 Mongodb \u51b7\u5907\u6570\u636e\uff0c\u73b0\u5728\u9700\u8981\u6062\u590d\u51fa\u6765\u4f7f\u7528\u30024 \u5e74\u524d\u7559\u4e0b\u7684\u662f\u4e00\u4e2a tar \u683c\u5f0f\u7684\u6587\u4ef6\uff0c19G \u5927\u5c0f\uff0c\u9884\u89c8\u6587\u4ef6\u5185\u5bb9\u662f\u8fd9\u6837\u7684\uff1a</p>\n<pre><code>mongodb/\nmongodb/WiredTiger.lock\nmongodb/index-3--2162478702715552952.wt\nmongodb/diagnostic.data/\nmongodb/diagnostic.data/metrics.2019-11-12T20-37-31Z-00000\nmongodb/diagnostic.data/metrics.2019-12-03T12-08-23Z-00000\nmongodb/diagnostic.data/metrics.2019-11-26T13-42-24Z-00000\nmongodb/diagnostic.data/metrics.2019-12-05T17-38-23Z-00000\nmongodb/diagnostic.data/metrics.2019-11-15T02-22-31Z-00000\nmongodb/diagnostic.data/metrics.2019-12-01T03-58-23Z-00000\nmongodb/diagnostic.data/metrics.2019-11-04T12-04-09Z-00000\nmongodb/diagnostic.data/metrics.2019-11-03T09-32-45Z-00000\nmongodb/diagnostic.data/metrics.2019-11-03T09-22-27Z-00000\nmongodb/diagnostic.data/metrics.2019-11-20T17-17-16Z-00000\nmongodb/diagnostic.data/metrics.2019-11-08T14-42-31Z-00000\nmongodb/diagnostic.data/metrics.2019-11-03T09-27-58Z-00000\nmongodb/diagnostic.data/metrics.2019-11-03T09-33-52Z-00000\nmongodb/diagnostic.data/metrics.2019-11-10T20-37-31Z-00000\nmongodb/diagnostic.data/metrics.2019-11-23T05-48-39Z-00000\nmongodb/diagnostic.data/metrics.2019-11-22T23-37-16Z-00000\nmongodb/diagnostic.data/metrics.2019-11-04T10-51-02Z-00000\nmongodb/diagnostic.data/metrics.2019-11-03T09-37-15Z-00000\nmongodb/diagnostic.data/metrics.2019-11-06T09-32-31Z-00000\nmongodb/diagnostic.data/metrics.2019-12-10T06-10-22Z-00000\nmongodb/diagnostic.data/metrics.2019-11-18T12-06-17Z-00000\nmongodb/diagnostic.data/metrics.2019-12-07T23-00-22Z-00000\nmongodb/diagnostic.data/metrics.2019-11-03T09-24-19Z-00000\nmongodb/diagnostic.data/metrics.2019-11-03T09-26-23Z-00000\nmongodb/diagnostic.data/metrics.2019-11-28T20-58-23Z-00000\nmongodb/diagnostic.data/metrics.2019-11-03T10-08-45Z-00000\nmongodb/diagnostic.data/metrics.2019-11-03T09-39-15Z-00000\nmongodb/_mdb_catalog.wt\nmongodb/collection-0--2162478702715552952.wt\nmongodb/collection-4--6287796740362363623.wt\nmongodb/index-5--2162478702715552952.wt\nmongodb/journal/\nmongodb/journal/WiredTigerPreplog.0000000001\nmongodb/journal/WiredTigerPreplog.0000000002\nmongodb/journal/WiredTigerLog.0000000434\nmongodb/WiredTiger.wt\nmongodb/collection-2--4216008088303394775.wt\nmongodb/WiredTigerLAS.wt\nmongodb/WiredTiger.turtle\nmongodb/index-6--6287796740362363623.wt\nmongodb/index-4--2162478702715552952.wt\nmongodb/collection-2--6287796740362363623.wt\nmongodb/index-3--6287796740362363623.wt\nmongodb/index-1--2162478702715552952.wt\nmongodb/index-1--4216008088303394775.wt\nmongodb/collection-0--4216008088303394775.wt\nmongodb/mongod.lock\nmongodb/WiredTiger\nmongodb/collection-0--6287796740362363623.wt\nmongodb/index-4--4216008088303394775.wt\nmongodb/storage.bson\nmongodb/sizeStorer.wt\nmongodb/index-2--2162478702715552952.wt\nmongodb/index-3--4216008088303394775.wt\nmongodb/index-1--6287796740362363623.wt\nmongodb/index-5--6287796740362363623.wt\n\n</code></pre>\n<p>\u6709\u6ca1\u6709\u719f\u6089 mogodb \u7684\u5927\u4f6c\u770b\u4e00\u773c\uff0c\u8fd9\u7a76\u7adf\u662f\u5565\u5907\u4efd\u6570\u636e\u5440\uff0c\u600e\u4e48\u6062\u590d\u5440\uff0c\u6211\u7528 MongoDB \u81ea\u5e26\u7684\u5bfc\u5165\u547d\u4ee4\u5c1d\u8bd5\uff0c\u59cb\u7ec8\u8bf4\u683c\u5f0f\u4e0d\u5bf9\u3002\u6211\u4ece\u6700\u65b0\u7684 7.0.4 \u7248\u672c\uff0c\u4e00\u8def\u8bd5\u5230 3.0 \u7248\u672c\uff0c\u5168\u90e8\u8bf4\u683c\u5f0f\u4e0d\u5bf9\u3002\u96be\u4e0d\u6210\u8fd9\u4e2a\u662f\u4ec0\u4e48\u7b2c\u4e09\u65b9\u5de5\u5177\u5bfc\u51fa\u7684\u6570\u636e\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Inzufu", 
        "name": "Inzufu", 
        "avatar": "https://cdn.v2ex.com/avatar/6e8a/951b/634465_large.png?m=1737804272"
      }, 
      "url": "https://www.v2ex.com/t/994961", 
      "title": "\u611f\u89c9 Mongodb \u7684\u6743\u9650\u7ba1\u7406\u6709\u70b9\u590d\u6742", 
      "id": "https://www.v2ex.com/t/994961", 
      "date_published": "2023-11-24T13:32:26+00:00", 
      "content_html": "\u4e4b\u524d\u6709\u4e9b\u9879\u76ee\u7684\u6570\u636e\u5e93\u7528\u7684\u662f <a target=\"_blank\" href=\"http://Mongodb.com\" rel=\"nofollow noopener\">Mongodb.com</a> \u4e0a\u9762\u7684\u514d\u8d39\u6570\u636e\u5e93\uff0c\u4f53\u9a8c\u5176\u5b9e\u8fd8\u53ef\u4ee5\uff0c\u6700\u8fd1\u60f3\u5728\u81ea\u5df1\u7684 VPS \u4e0a\u9762\u79c1\u6709\u5316\u90e8\u7f72\u4e00\u4e2a Mongodb \uff0c\u611f\u89c9\u5728\u6743\u9650\u7ba1\u7406\u4e0a\u9762\u5f88\u6df7\u4e71\uff0c\u5e76\u4e14\u7f51\u4e0a\u4e5f\u4e0d\u592a\u597d\u641c\u76f8\u5173\u7684\u6559\u7a0b\u3002<br />\u5c31\u6bd4\u5982\u9ed8\u8ba4\u7684 test \u6570\u636e\u5e93\uff0c\u7528 db.dropDatabase() \u5220\u4e86\u534a\u5929\u4e00\u76f4\u90fd\u5220\u4e0d\u6389\uff0c\u5e76\u4e14\u5728\u5f00\u4e86 authentication \u7684\u60c5\u51b5\u4e0b\u4f9d\u65e7\u53ef\u4ee5\u65e0\u5bc6\u7801\u76f4\u63a5\u8fde\u63a5\uff0c\u5e76\u4e14\u8fd8\u53ef\u4ee5\u7528\u4efb\u4f55\u5b58\u5728\u7684\u7528\u6237\u540d+\u7a7a\u5bc6\u7801\u767b\u5f55\u8fdb\u7528\u6237\uff08\u867d\u7136\u8bbf\u95ee\u63d0\u793a\u6ca1\u6709\u6743\u9650\uff0c\u4f46\u611f\u89c9\u8fd8\u662f\u4e0d\u592a\u8e0f\u5b9e\uff09\u3002<br />\u4e0d\u77e5\u9053 Mongodb \u5c31\u662f\u8fd9\u6837\u8bbe\u8ba1\u7684\u8fd8\u662f\u6211\u914d\u7f6e\u7684\u95ee\u9898\uff0c\u8bf7\u9ad8\u4eba\u6307\u70b9\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Dingzhen", 
        "name": "Dingzhen", 
        "avatar": "https://cdn.v2ex.com/avatar/258a/2349/638309_large.png?m=1698417184"
      }, 
      "url": "https://www.v2ex.com/t/986146", 
      "date_modified": "2023-10-27T18:44:04+00:00", 
      "content_html": "<p>\u73b0\u5728\u7684\u89c6\u9891\u90fd\u662f 4.0 \u6216 5.0 \u7684\uff0c\u597d\u50cf\u8fc7\u65f6\u4e86\u3002\u73b0\u5728\u6709\u7ed3\u5408 Java \u4f7f\u7528\u7684\u6700\u65b0\u6559\u7a0b\u6216\u89c6\u9891\u5417\uff1f</p>\n", 
      "date_published": "2023-10-27T13:58:23+00:00", 
      "title": "MongoDB \u6709\u4ec0\u4e48\u6bd4\u8f83\u65b0\u7684\u5165\u95e8\u6559\u7a0b\u5417\uff1f", 
      "id": "https://www.v2ex.com/t/986146"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/amlee", 
        "name": "amlee", 
        "avatar": "https://cdn.v2ex.com/avatar/c992/0ad3/137695_large.png?m=1694709550"
      }, 
      "url": "https://www.v2ex.com/t/977999", 
      "title": "\u6709\u6ca1\u6709\u89c9\u5f97\u7528 typescript \u5199 mongoose \u597d\u86cb\u75bc", 
      "id": "https://www.v2ex.com/t/977999", 
      "date_published": "2023-09-28T08:46:14+00:00", 
      "content_html": "<p>\u611f\u89c9 mongoose \u7684\u7c7b\u578b\u7cfb\u7edf\u597d\u6df7\u4e71\uff0c\u600e\u4e48\u7528\u90fd\u4e0d\u5bf9\u52b2\u3002</p>\n<p>\u5c31\u5149\u4e00\u4e2a ObjectId \uff0c\u6211\u59cb\u7ec8\u641e\u4e0d\u6e05 <code>mongoose.Types.ObjectId  mongoose.Schema.Types.ObjectId</code>\u6709\u4ec0\u4e48\u533a\u522b\u3002</p>\n<p>\u7136\u540e\u6587\u6863\u91cc\u9762\u8fd8\u6709\u4e00\u4e2a <code>mongoose.ObjectId</code>\uff0c\u8fd9\u73a9\u610f ide \u76f4\u63a5\u63d0\u793a\u7c7b\u578b\u9519\u8bef\u4e86\uff0c\u597d\u86cb\u75bc\u3002</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/whyalsme", 
        "name": "whyalsme", 
        "avatar": "https://cdn.v2ex.com/gravatar/fb0e6dcfb1fb649122a035b0afb1ee78?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/976479", 
      "title": "mongodb \u751f\u4ea7\u73af\u5883\u521b\u5efa\u7d22\u5f15", 
      "id": "https://www.v2ex.com/t/976479", 
      "date_published": "2023-09-23T08:02:47+00:00", 
      "content_html": "<p>mongodb v4.0</p>\n<p>\u751f\u4ea7\u73af\u5883\uff0c\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u7d22\u5f15\uff0c\u6709\u6ca1\u6709\u4e0d\u5f71\u54cd\u7ebf\u4e0a\u4e1a\u52a1\u7684\u65b9\u6848\uff0c\u6216\u8005\u6709\u4ec0\u4e48\u65b9\u6848\u548c\u7ecf\u9a8c\u53ef\u4ee5\u5206\u4eab\u4e0b\uff0c\u628a\u5f71\u54cd\u964d\u5230\u6700\u4f4e\u3002</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Haujilo", 
        "name": "Haujilo", 
        "avatar": "https://cdn.v2ex.com/avatar/926a/62f3/342438_large.png?m=1712201603"
      }, 
      "url": "https://www.v2ex.com/t/959031", 
      "date_modified": "2023-07-23T12:56:03+00:00", 
      "content_html": "<p>\u6700\u8fd1\u5f00\u59cb\u7528 mongodb \uff0c\u53d1\u73b0\u4e5f\u6709\u4e8b\u52a1\u7684\u6982\u5ff5\u4e86\u3002</p>\n<p>\u4e0d\u8fc7\u6709\u4e9b\u4e1a\u52a1\u4ee3\u7801\u6709\u5728\u591a\u7ebf\u7a0b\u4e0b\u8bbf\u95ee MySQL \u7684\u573a\u666f\u65f6\uff0c\u66f4\u65b0\u6570\u636e\u4f1a\u7528 select ... for update \u9501\u884c\uff0c\u6bd4\u5982\u5e38\u89c1\u7684\u9501\u4e2a\u8ba2\u5355\uff0c\u7136\u540e\u8c03\u7528\u5916\u90e8\u63a5\u53e3\u540e\u4fee\u6539\u72b6\u6001\uff0c\u5931\u8d25\u7684\u65f6\u5019\u56de\u6eda\u6570\u636e\uff0c\u6b64\u65f6\u5176\u4ed6\u7684\u7ebf\u7a0b\u8bbf\u95ee\u90fd\u662f\u963b\u585e\u4f4f\u7684\u3002</p>\n<p>\u7528 MongoDB \u7684\u8bdd\uff0c\u662f\u5426\u539f\u751f\u6307\u4ee4\u5c31\u53ef\u4ee5\u5b9e\u73b0\u540c\u6837\u7684\u6548\u679c\uff08\u597d\u50cf\u6ca1\u641c\u5230\uff09\uff1f\u662f\u5fc5\u987b\u5f97\u989d\u5916\u641e\u4e2a\u5206\u5e03\u5f0f\u9501\u6765\uff1f</p>\n", 
      "date_published": "2023-07-23T12:52:16+00:00", 
      "title": "\u521a\u7528 mongodb\uff0c\u8bf7\u6559\u4e0b\u7c7b\u4f3c MySQL \u7684\u300cselect ... for update\u300d\u5927\u4f19\u90fd\u662f\u5982\u4f55\u66ff\u4ee3\uff1f", 
      "id": "https://www.v2ex.com/t/959031"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/manasheep", 
        "name": "manasheep", 
        "avatar": "https://cdn.v2ex.com/avatar/f4a1/8f48/227374_large.png?m=1708345875"
      }, 
      "url": "https://www.v2ex.com/t/957979", 
      "title": "\u6c42\u4e00\u4e2a\u597d\u7528\u7684 MongoDB \u7ba1\u7406\u5de5\u5177~", 
      "id": "https://www.v2ex.com/t/957979", 
      "date_published": "2023-07-19T06:29:31+00:00", 
      "content_html": "\u4e4b\u524d\u7528 Studio 3T \uff0c\u73b0\u5728\u6709\u6ca1\u6709\u7c7b\u4f3c\u7684\u6216\u66f4\u597d\u7528\u7684\u5440\uff1f\u6700\u597d\u514d\u8d39~"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/slcun", 
        "name": "slcun", 
        "avatar": "https://cdn.v2ex.com/avatar/b428/1633/461037_large.png?m=1747363116"
      }, 
      "url": "https://www.v2ex.com/t/952665", 
      "title": "mongodb \u53ea\u5269\u786c\u76d8\u4e0a\u7684\u6570\u636e\u5e93\u6587\u4ef6\u8981\u600e\u4e48\u6062\u590d", 
      "id": "https://www.v2ex.com/t/952665", 
      "date_published": "2023-06-29T04:50:36+00:00", 
      "content_html": "<p>centos \u7cfb\u7edf\u574f\u4e86\uff0c\u76f4\u63a5\u6362\u4e86\u786c\u76d8\u91cd\u88c5\u7684\u7cfb\u7edf\uff0c\u65e7\u786c\u76d8\u4e0a\u6709 mongodb \u7684\u6570\u636e\u5e93\u6587\u4ef6\uff0c\u8fd9\u4e2a\u8981\u600e\u4e48\u6062\u590d\uff1f\u76f4\u63a5\u590d\u5236\u7c98\u8d34\u5230\u65b0\u7cfb\u7edf\u4e0a\u53ef\u4ee5\u4e48\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/imldy", 
        "name": "imldy", 
        "avatar": "https://cdn.v2ex.com/avatar/7dd7/e339/529953_large.png?m=1695655354"
      }, 
      "url": "https://www.v2ex.com/t/917036", 
      "title": "\u7528\u4e0d\u5b58\u5728\u7684\u5b57\u6bb5\u7684\u5b50\u5b57\u6bb5 lookup \u65f6\uff0c\u5206\u7ec4\u540e\u8be5\u5b57\u6bb5\u503c\u4f1a\u53d8\u6210\u7a7a\u5bf9\u8c61\uff0c\u5982\u4f55\u53d8\u6210 null", 
      "id": "https://www.v2ex.com/t/917036", 
      "date_published": "2023-02-17T12:40:24+00:00", 
      "content_html": "<p>\u573a\u666f\u662f\u4e3a\u8bc4\u8bba\u5bfb\u627e\u5b50\u8bc4\u8bba\n\u8bc4\u8bba\u6587\u6863</p>\n<pre><code>{\n  \"_id\": {\n    \"$oid\": \"63ed9bd52b031a24fdbe1e1e\"\n  }\n  \"creatorId\": {\n    \"$oid\": \"63e51a155ca7f018d6038967\"\n  },\n  \"text\": \"\u8bc4\u8bba\u5185\u5bb9 0216\"\n}\n</code></pre>\n<p>\u5b50\u8bc4\u8bba\u6587\u6863\uff1a</p>\n<pre><code>{\n  \"_id\": {\n    \"$oid\": \"63ee03eb98b24f5603c044da\"\n  },\n  \"linkCommentId\": {\n    \"$oid\": \"63ed9bd52b031a24fdbe1e1e\"\n  },\n  \"replyToUserId\": {\n    \"$oid\": \"63e51a155ca7f018d6038967\"\n  },\n  \"creatorId\": {\n    \"$oid\": \"63e51a155ca7f018d6038967\"\n  },\n  \"text\": \"\u6d4b\u8bd5\u5b50\u8bc4\u8bba 0216-2\"\n}\n</code></pre>\n<p>\u4ee3\u7801</p>\n<pre><code>[\n  {\n    $match:\n      {\n        _id: ObjectId(\"63ed9bd52b031a24fdbe1e1e\"),\n      },\n  },\n  { // \u4ece\u5b50\u8bc4\u8bba\u96c6\u5408\u4e2d\u627e\u5230\u8bc4\u8bba\u7684\u5b50\u8bc4\u8bba(\u5047\u8bbe\u8be5\u8bc4\u8bba\u4e0d\u5b58\u5728\u5b50\u8bc4\u8bba\uff0creplies \u4e3a\u7a7a\u6570\u7ec4)\n    $lookup:\n      {\n        from: \"dynamicChildComment\",\n        localField: \"_id\",\n        foreignField: \"linkCommentId\",\n        as: \"replies\",\n      },\n  },\n  { // \u5c55\u5f00\u5b50\u8bc4\u8bba\uff08\u5f97\u5230\u4e00\u6761\u6ca1\u6709 replies \u7684\u6587\u6863\uff09\n    $unwind:\n      {\n        path: \"$replies\",\n        preserveNullAndEmptyArrays: true,\n      },\n  },\n  { // 1 \u3001\u7ed9\u5b50\u8bc4\u8bba\u5bfb\u627e\u53d1\u5e03\u8005\uff0c\u6267\u884c\u540e\uff1areplies \u5bf9\u8c61\u53ea\u5b58\u5728\u4e00\u4e2a\u5c5e\u6027 creator \uff0c\u503c\u4e3a\u7a7a\u6570\u7ec4\n    $lookup:\n      {\n        from: \"users\",\n        localField: \"replies.creatorId\",\n        foreignField: \"_id\",\n        as: \"replies.creator\",\n      },\n  },\n  { // 2 \u3001\u6267\u884c\u540e\uff1areplies \u5bf9\u8c61\u6ca1\u6709\u5c5e\u6027\n    $unwind:\n      {\n        path: \"$replies.creator\",\n        preserveNullAndEmptyArrays: true,\n      },\n  },\n  { // 3 \u3001\u6267\u884c\u540e\uff1areplies \u5bf9\u8c61\u53ea\u5b58\u5728\u4e00\u4e2a\u5c5e\u6027 replyToUser \uff0c\u503c\u4e3a\u7a7a\u6570\u7ec4\n    $lookup:\n      {\n        from: \"users\",\n        localField: \"replies.replyToUserId\",\n        foreignField: \"_id\",\n        as: \"replies.replyToUser\",\n      },\n  },\n  { // 4 \u3001\u6267\u884c\u540e\uff1areplies \u5bf9\u8c61\u6ca1\u6709\u5c5e\u6027\n    $unwind:\n      {\n        path: \"$replies.replyToUser\",\n        preserveNullAndEmptyArrays: true,\n      },\n  },\n  {\n    $group:\n      {\n        _id: \"_id\",\n        replies: {\n          $push: \"$replies\", // \u5230\u8fd9\u91cc\uff0c\u5c31\u51fa\u73b0\u4e86\u4e00\u4e2a replies \u6570\u7ec4\uff0c\u6709\u4e00\u4e2a\u7a7a\u5bf9\u8c61\u4f5c\u4e3a\u7b2c 0 \u4e2a\u5143\u7d20\n        },\n      },\n  },\n]\n</code></pre>\n<p>\u6211\u8be5\u5982\u4f55\u5c06 replies \u6570\u7ec4\u53d8\u6210\u7a7a\u6570\u7ec4</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/nekomiao", 
        "name": "nekomiao", 
        "avatar": "https://cdn.v2ex.com/avatar/1ff3/cb4c/436775_large.png?m=1674143682"
      }, 
      "url": "https://www.v2ex.com/t/912244", 
      "title": "\u5404\u4f4d javaer MongoDB \u7528\u7684\u4ec0\u4e48 orm", 
      "id": "https://www.v2ex.com/t/912244", 
      "date_published": "2023-02-01T06:31:04+00:00", 
      "content_html": "<p>spring \u96c6\u6210\u65b9\u4fbf\uff0c\u652f\u6301 mybatis plus \u90a3\u79cd Lambda \u8868\u8fbe\u5f0f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/slomo", 
        "name": "slomo", 
        "avatar": "https://cdn.v2ex.com/gravatar/5aedb0498aca46bc5301a2909b228e59?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/908635", 
      "title": "mongodb lookup \u4f7f\u7528\u8bf7\u6559", 
      "id": "https://www.v2ex.com/t/908635", 
      "date_published": "2023-01-13T03:02:51+00:00", 
      "content_html": "<h2>\u8bf7\u6559\u5982\u4f55 join data</h2>\n<h3>\u95ee\u9898\u63cf\u8ff0</h3>\n<p>\u73b0\u5728\u6709\u4e24\u4e2a document, order \u548c product. \u6570\u636e\u5206\u522b\u5982\u4e0b</p>\n<pre><code class=\"language-json\">// order\n{\n\t\"id\": 1,\n    \"name\": \"\u6211\u7684\u8ba2\u5355\",\n    \"products\": [\n    \t{\n    \t\t\"productId\": 1,\n        \t\"num\": 2\n    \t},\n        {\n    \t\t\"productId\": 2,\n        \t\"num\": 1\n    \t}\n    ]\n}\n// product\n{\n\t\"id\": 1,\n    \"name\": \"\u6d4b\u8bd5\u5546\u54c1\",\n    \"price\": 10.0\n}\n{\n\t\"id\": 2,\n    \"name\": \"\u6b63\u5f0f\u5546\u54c1\",\n    \"price\": 18.8\n}\n</code></pre>\n<p>\u5982\u679c\u6211\u60f3\u5f97\u5230\u4e0b\u9762\u8fd9\u6837\u7684\u6570\u636e\u7ed3\u6784, \u5e94\u8be5\u600e\u4e48\u5199\u67e5\u8be2\u5462</p>\n<pre><code class=\"language-json\">{\n\t\"_id\": 1,\n\t\"name\": \"\u6211\u7684\u8ba2\u5355\",\n    \"products\": [\n    \t{\n    \t\t\"productId\": 1,\n        \t\"num\": 2,\n        \t\"product\": {\n\t        \t\"id\": 1,\n    \t\t\t\"name\": \"\u6d4b\u8bd5\u5546\u54c1\",\n                \t\"price\": 10.0\n        \t}\n    \t},\n        {\n    \t\t\"productId\": 2,\n        \t\"num\": 1,\n        \t\"product\": {\n\t        \t\"id\": 2,\n    \t\t\t\"name\": \"\u6b63\u5f0f\u5546\u54c1\",\n                \t\"price\": 18.8\n        \t}\n    \t}\n    ]\n}\n</code></pre>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/among", 
        "name": "among", 
        "avatar": "https://cdn.v2ex.com/avatar/4a56/94f4/417783_large.png?m=1711429226"
      }, 
      "url": "https://www.v2ex.com/t/901522", 
      "title": "monodb \u5185\u5b58\u5360\u6ee1\uff0c\u8fdb\u7a0b\u9000\u51fa", 
      "id": "https://www.v2ex.com/t/901522", 
      "date_published": "2022-12-10T06:06:36+00:00", 
      "content_html": "<p>\u6700\u8fd1\u4e00\u6bb5\u65f6\u95f4\uff0c\u4e00\u53f0 mongodb \u7684\u670d\u52a1\u5668\uff0c\u7248\u672c\u4e3a 4.4.10 \uff0c\u7ecf\u5e38\u9047\u5230\u5185\u5b58\u5360\u6ee1\u9000\u51fa\uff0c\u73b0\u5728\u7684 linux \u7248\u672c\u4e3a centos 7.9 \uff0c\u5185\u5b58\u4e3a 36g \uff0c\u7ecf\u5e38\u9047\u5230\u5185\u5b58\u5360\u6ee1\u540e\u95ea\u9000\u7684\u95ee\u9898\u3002</p>\n<p>\u5df2\u7ecf\u914d\u7f6e\u4e86 wiredTigercachesizeGB \u7684\u53c2\u6570</p>\n<p>\u542f\u52a8\u53c2\u6570\u5982\u4e0b\uff1a</p>\n<p>mongod --bind_ip-a11 --auth --journal --oplogsize 8192 --wiredTigercachesizeGB 28 --1ogpath logs/mongod.log --1ogappend --dbpath data --directoryperdb</p>\n<p>\u64cd\u4f5c\u7cfb\u7edf\u7684\u65e5\u5fd7\u4e3a\uff1a</p>\n<p><img alt=\"image.png\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://s2.loli.net/2022/12/10/1xsbgyj8mvakADw.png\"/></p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/don1731", 
        "name": "don1731", 
        "avatar": "https://cdn.v2ex.com/avatar/790d/8fa5/43555_large.png?m=1681636010"
      }, 
      "url": "https://www.v2ex.com/t/900866", 
      "title": "12 \u6708 14 \u65e5\u4e0a\u6d77\u65b0\u5929\u5730\u6717\u5ef7\u9152\u5e97\uff0c\u6211\u53f8\u8d5e\u52a9\u7684 MongoDB Day \u4e0a\u6d77\u7ad9\uff0c\u6b22\u8fce\u5927\u5bb6\u8054\u7cfb\u6211\u6ce8\u518c\u62a5\u540d\u3002", 
      "id": "https://www.v2ex.com/t/900866", 
      "date_published": "2022-12-07T11:10:34+00:00", 
      "content_html": "<ul>\n<li>\u4f1a\u8bae\u65f6\u95f4\uff1a\u4e0a\u5348\u4e5d\u70b9\u5230\u4e0b\u5348\u4e94\u70b9</li>\n<li>\u4e3b\u9898\u6f14\u8bb2\uff1aMongoDB \u5317\u4e9a\u533a\u9ad8\u7ea7\u526f\u603b\u88c1\uff0cMongoDB \u5317\u4e9a\u533a\u6280\u672f\u603b\u76d1</li>\n<li>\u5ba2\u6237\u5206\u4eab\uff1a\u7f51\u6613\u6e38\u620f\uff0c\u54aa\u5495\u89c6\u8baf\uff0c\u817e\u8baf\u6e38\u620f\uff0c\u5357\u74dc\u7535\u5f71</li>\n<li>\u62bd\u5956\u5956\u54c1\uff1aAirpods Pro \uff0c\u96f7\u86c7\u673a\u68b0\u952e\u76d8\uff0c\u534e\u4e3a\u5145\u7535\u5b9d</li>\n<li>\u66f4\u591a\u4ecb\u7ecd\u4fe1\u606f\uff0c\u8054\u7cfb\u5fae\u4fe1\uff1aMTUzNTM3MzcwNDI=</li>\n</ul>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Chan66", 
        "name": "Chan66", 
        "avatar": "https://cdn.v2ex.com/gravatar/1d83e2d781e673067da4d8dfacdf7a9c?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/886074", 
      "date_modified": "2022-10-11T06:41:09+00:00", 
      "content_html": "<p>\u6709\u4e24\u4e2a\u8868\uff0c\u4e00\u4e2a\u7528\u6237\u8868\uff0c\u4e00\u4e2a\u8ba2\u5355\u8868\uff0c\u73b0\u5728\u60f3\u8981\u67e5\u8be2\u6240\u6709 appId \u4e3a 1 \u7684\u7528\u6237\u7684\u8ba2\u5355\u5e94\u8be5\u600e\u4e48\u67e5\u8be2\u5462</p>\n<pre><code>const orderSchema = new mongoose.Schema({\n    user: {\n        type: mongoose.SchemaTypes.ObjectId,\n        ref: \"User\",\n        required: true\n    },\n    orderNum: {\n        type: String,\n        required: true\n    },\n})\n</code></pre>\n<pre><code>const UserSchema = new mongoose.Schema({\n    nickname: String,\n    avatarUrl: String,\n    phone: String,\n    appId: {\n        type: String,\n    }\n});\n</code></pre>\n", 
      "date_published": "2022-10-11T06:40:42+00:00", 
      "title": "mongoose \u5916\u952e\u67e5\u8be2\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/886074"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/wurenzhidi", 
        "name": "wurenzhidi", 
        "avatar": "https://cdn.v2ex.com/gravatar/af7e47ae2c60d0fb1c306ebd4ed08cd4?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/866388", 
      "title": "MongDB upsert \u65f6\u65b0\u589e\u7684\u5b57\u6bb5\u4e0d\u80fd\u66f4\u65b0\u503c", 
      "id": "https://www.v2ex.com/t/866388", 
      "date_published": "2022-07-15T04:17:47+00:00", 
      "content_html": "<p>\u76ee\u6807\uff1a\u5728 mongoDB \u7684\u73b0\u6709\u8bb0\u5f55\u91cc\uff0c\u65b0\u589e TfuEigenvalue TevEigenvalue \u4e24\u4e2a\u5b57\u6bb5,\u5e76\u8d4b\u503c\n\u95ee\u9898\uff1aTfuEigenvalue TevEigenvalue \u5b57\u6bb5\u7684\u503c\u5747\u4e3a\u201c\u201d\n\u89e3\u51b3\u8fc7\u7a0b: row.ObtainDate(string \u7c7b\u578b)\u5b58\u5728\u4e3a\"\"\u7684\u60c5\u51b5, \u6b64\u524d\u672a\u5904\u7406\u8fd9\u4e2a\u60c5\u51b5. \u4fee\u590d\u540e,\u95ee\u9898\u6d88\u5931.\n\u6709\u95ee\u9898\u7684\u4ee3\u7801:\nfor _, row := range rows {\nupsertFilter := bson.M{\n\"vin\": row.VinNo,\n}\n//\u8fd9\u91cc\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a time, \u6709\u95ee\u9898\ndate, _ := time.ParseInLocation(\"2006-01-02 15:04:05\", row.ObtainDate, time.Local)\nerr := db.Update(upsertFilter, bson.M{\"$set\": DimVehicleT5{\nVin:           row.VinNo,\nBrandID:       row.BrandName,\nBrandName:     row.BrandName,\nModelID:       row.CarSeriesCode,\nModelName:     row.CarSeriesCode,\nCarModel:      row.ProductCode,\nTbjEigenvalue: row.TbjEigenvalue,\nTfuEigenvalue: row.TfuEigenvalue,\nTevEigenvalue: row.TevEigenvalue,\nObtainDate:    uint64(date.UnixNano()) / 1e3,\nConfigName:    row.ConfigName,\n}}, false, bson.M{\"upsert\": true})\nif err != nil {\nlog.Errorf(\"zyh5 db insert err:%v\", err)\ncontinue\n}\n}</p>\n<p>\u6c42\u6559: \u4e3a\u4ec0\u4e48\u5b57\u7b26\u4e32\u89e3\u6790\u7684\u95ee\u9898, \u4f1a\u5f71\u54cd\u5176\u4ed6\u4e24\u4e2a\u5b57\u6bb5\u7684\u8d4b\u503c\u5462? \u6211\u5728\u672c\u5730\u4e5f\u6ca1\u590d\u73b0\u51fa\u8fd9\u4e2a\u60c5\u51b5</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Liuwilliam1", 
        "name": "Liuwilliam1", 
        "avatar": "https://cdn.v2ex.com/gravatar/ad7273b2af7e652f66101aa017355d7e?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/865949", 
      "title": "\u5927\u4f6c\u4eec\uff0c\u8bf7\u95ee\u5982\u4f55\u901a\u8fc7 go.mongodb.org \u7684\u9a71\u52a8\u5141\u8bb8\u96c6\u5408\u5206\u7247\u554a\uff0c\u4ed6\u7684\u9a71\u52a8\u4e0d\u652f\u6301\u8fd0\u884c\u811a\u672c\u5417\uff1f", 
      "id": "https://www.v2ex.com/t/865949", 
      "date_published": "2022-07-13T09:16:00+00:00", 
      "content_html": "<p>sh.enableSharding(\"database\");\nsh.shardCollection(\"database.collection\", {\"_id\":\"hashed\"},false,{numInitialChunks:20*5});</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/QGabriel", 
        "name": "QGabriel", 
        "avatar": "https://cdn.v2ex.com/avatar/c589/c6e8/440144_large.png?m=1646193143"
      }, 
      "url": "https://www.v2ex.com/t/863484", 
      "title": "nodejs mongodb", 
      "id": "https://www.v2ex.com/t/863484", 
      "date_published": "2022-07-01T09:03:30+00:00", 
      "content_html": "nodejs \u8fde\u63a5 mongoDB \u67e5\u8be2\u6570\u636e\u603b\u8fd4\u56de[]<br /><br />nodejs<br />------<br /><a target=\"_blank\" href=\"http://app.post\" rel=\"nofollow noopener\">app.post</a>('/GetMail', function (req, res) {<br />  Models.MAIL.find((err, items) =&gt; {<br />\t\tconsole.log(items)<br />\t})<br />})<br /><br />db.js<br />-----<br />const mongoose = require('mongoose')<br />mongoose.connect('mongodb://localhost:27017/abc', { useNewUrlParser: true }, (err, db) =&gt; {<br />  console.log(db);<br />  if (err) {<br />    console.log('********** [\u6570\u636e\u5e93\u8fde\u63a5\u5931\u8d25] **********')<br />  } else {<br />    console.log('********** [\u6570\u636e\u5e93\u8fde\u63a5\u6210\u529f] **********')<br />  }<br />})<br />const mail = new mongoose.Schema({<br />  code: Number, <br />},<br />{<br />  collection: 'mail'<br />})<br />const Models = {<br />  MAIL: mongoose.model('mail', mail),<br />}<br />module.exports = Models<br /><br />mongoDB<br />-----<br />\u6570\u636e\u5e93\u540d\u5b57\u4e3a abc<br />\u4e0b\u9762\u6709 mail =&gt; 20220602<br />\u60f3\u6307\u5b9a\u67e5\u8be2'20220602'\u8868\u6570\u636e \u603b\u8fd4\u56de\u7a7a\u5462"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/mlxy123123", 
        "name": "mlxy123123", 
        "avatar": "https://cdn.v2ex.com/gravatar/7c5033ffb50300ee8031b979205ec63b?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/861420", 
      "title": "MongoDB \u4ec0\u4e48\u91cf\u5b50\u6570\u636e\u5e93", 
      "id": "https://www.v2ex.com/t/861420", 
      "date_published": "2022-06-22T08:33:30+00:00", 
      "content_html": "<p>\u5728 VPS \u4e0a\u8d77\u4e86\u4e00\u4e2a MongoDB \u670d\u52a1\uff0c\u5b58\u4e00\u4e9b\u722c\u866b\u6293\u6765\u7684\u6570\u636e</p>\n<p>\u7ed3\u679c\u9694\u4e09\u5dee\u4e94\u5c31\u4f1a\u4e22\u5931\u4e00\u90e8\u5206 collection \uff0c\u4ee3\u7801\u91cc\u6ca1\u67e5\u51fa\u95ee\u9898\uff0c\u52a0\u4e0a\u6bcf\u5929\u90fd\u4f1a\u91cd\u6293\u8865\u9f50\u6570\u636e\uff0c\u5c31\u4e00\u76f4\u6ca1\u7ba1</p>\n<p>\u524d\u4e24\u5929\u60f3\u7740\u8fd8\u662f\u89e3\u51b3\u4e00\u4e0b\uff0c\u7528 Celery \u505a\u4e86\u4e00\u4e2a\u6bcf\u5206\u949f\u6267\u884c\u7684\u4efb\u52a1\uff0c\u68c0\u67e5 collections \u91cc\u7f3a\u5c11\u67d0\u4e00\u5f20\u8868\u5c31\u53d1\u6d88\u606f\u62a5\u8b66</p>\n<p>\u7ed3\u679c\u4e09\u5929\u8fc7\u53bb\u4e86\uff0c\u6570\u636e\u90fd\u6ca1\u518d\u4e22\u4e86</p>\n<p>MongoDB \u662f\u7b2c\u4e00\u4e2a\u4f7f\u7528\u6982\u7387\u4e91\u5f62\u5f0f\u5b58\u50a8\u6570\u636e\u7684\u6570\u636e\u5e93\u5417\uff0c\u4e00\u76f4\u88ab\u89c2\u5bdf\u5c31\u4f1a\u574d\u7f29\uff0c\u4e0d\u89c2\u5bdf\u5c31\u4f1a\u9038\u6563\u7684</p>\n<p>\uff08\u5176\u5b9e\u662f\u60f3\u95ee\u95ee\u4e22\u6570\u636e\u7684\u539f\u56e0\uff0c\u548c\u6392\u67e5\u7684\u65b9\u6cd5\uff09</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/lyang", 
        "name": "lyang", 
        "avatar": "https://cdn.v2ex.com/avatar/e9d9/6252/437626_large.png?m=1655858715"
      }, 
      "url": "https://www.v2ex.com/t/856173", 
      "title": "\u6c42\u52a9\uff0c Failed with error 'aborted',\u662f\u4ec0\u4e48\u60c5\u51b5\uff0c\u5e94\u8be5\u600e\u4e48\u5904\u7406", 
      "id": "https://www.v2ex.com/t/856173", 
      "date_published": "2022-05-30T03:22:29+00:00", 
      "content_html": "<pre><code>Migration Results for the last 24 hours: \n36 : Success\n1 : Failed with error 'aborted', from shard1 to shard3\n1 : Failed with error 'aborted', from shard1 to shard2\n</code></pre>\n<pre><code>2022-05-30T10:46:18.407+0800 I SHARDING [conn1034] about to log metadata event into changelog: { _id: \"rabbit-node1-2022-05-30T10:46:18.407+0800-62942ffa44ce915f01bbaa4d\", server: \"rabbit-node1\", clientAddr: \"ip:33616\", time: new Date(1653878778407), what: \"moveChunk.error\", ns: \"data.m\", details: { min: { a: 27, originTime: 1646064091546 }, max: { a: 144, originTime: 1646092716120 }, from: \"shard1\", to: \"shard2\" } }\n2022-05-30T10:47:26.036+0800 I SHARDING [conn1034] about to log metadata event into changelog: { _id: \"rabbit-node1-2022-05-30T10:47:26.036+0800-6294303e44ce915f01bc43b2\", server: \"rabbit-node1\", clientAddr: \"ip:33616\", time: new Date(1653878846036), what: \"moveChunk.error\", ns: \"data.m\", details: { min: { a: 144, originTime: 1646092716120 }, max: { a: 265, originTime: 1646098360020 }, from: \"shard1\", to: \"shard3\" } }\n</code></pre>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Liuwilliam1", 
        "name": "Liuwilliam1", 
        "avatar": "https://cdn.v2ex.com/gravatar/ad7273b2af7e652f66101aa017355d7e?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/845839", 
      "title": "\u8bf7\u6559\u5927\u4f6c\uff1a mongo4.2 \u591a\u4e2a\u4e8b\u52a1\u4fee\u6539 document \u62a5 WriteConflict", 
      "id": "https://www.v2ex.com/t/845839", 
      "date_published": "2022-04-09T01:26:54+00:00", 
      "content_html": "<p>ps:\u6211\u7684\u4e1a\u52a1\u786e\u5b9e\u8981\u5e76\u53d1\u4fee\u6539\u540c\u4e00\u4e2a document\n\u6211\u770b\u7f51\u4e0a\u6709\u4e24\u79cd\u89e3\u51b3\u65b9\u6848</p>\n<pre><code>1.\u6bd4\u5982\u4fee\u6539 maxTransactionLockRequestTimeoutMillis=36000000\n</code></pre>\n<pre><code>2.\u5e94\u7528\u5c42\u9650\u5236\uff0c\u6bd4\u5982\u5b9e\u73b0\u6392\u961f\u7cfb\u7edf\n</code></pre>\n<p>\u8bf7\u95ee\u5927\u4f6c\u6709\u4ec0\u4e48\u597d\u7684\u5efa\u8bae\u5417\uff0c\u611f\u8c22\u611f\u8c22</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/leebs", 
        "name": "leebs", 
        "avatar": "https://cdn.v2ex.com/gravatar/0da0fd3a8456f6bc8ac6a3be4de6746a?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/838648", 
      "date_modified": "2022-03-08T15:34:11+00:00", 
      "content_html": "<p>\u5047\u8bbe 50w \u6570\u636e\uff0cdb \u5168\u91cf\u67e5\u8be2\uff0c\u518d\u5f80 redis \u91cc\u9762\u585e\uff0c\u5185\u5b58\u53ef\u80fd\u4f1a\u7206\u3002\ndb \u5206\u9875\u67e5\u8be2\uff0c\u9700\u8981\u5148 count \uff0c\u662f\u4e2a\u8017\u65f6\u7684\u64cd\u4f5c\uff0c\u800c\u4e14\u5206\u6279\u6b21\u63d2\u5165\uff0c\u6700\u7ec8\u7ed3\u679c\u548c\u6570\u636e\u5e93\u4e0d\u4e00\u5b9a\u4e00\u81f4\uff08\u4e2d\u95f4\u53ef\u80fd\u6709\u5176\u4ed6\u5220\u9664\u4fee\u6539\u7684\u64cd\u4f5c\uff09\u3002</p>\n<p>\u6bd4\u5982\u5e03\u9686\u8fc7\u6ee4\u5668\uff0c\u4e00\u822c\u662f\u600e\u4e48\u5bfc\u5165\u4ebf\u7ea7\u6570\u636e\u7684\uff1f</p>\n", 
      "date_published": "2022-03-07T08:53:07+00:00", 
      "title": "mongodb \u6570\u636e\u5168\u91cf\u52a0\u8f7d\u5230 redis\uff0c\u600e\u6837\u63d0\u5347\u901f\u5ea6\uff1f", 
      "id": "https://www.v2ex.com/t/838648"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/aqtata", 
        "name": "aqtata", 
        "avatar": "https://cdn.v2ex.com/avatar/be60/9f31/171110_large.png?m=1764074284"
      }, 
      "url": "https://www.v2ex.com/t/826436", 
      "date_modified": "2022-01-05T12:09:43+00:00", 
      "content_html": "<p>\u5927\u6982\u6709\u8fd9\u6837\u7684\u6570\u636e</p>\n<pre><code>[{\n\t\"date\": \"20220101\",\n\t\"id\": \"aaa\",\n\t\"name\": \"jack\"\n}, {\n\t\"date\": \"20220101\",\n\t\"id\": \"aaa\",\n\t\"name\": \"tony\"\n}, {\n\t\"date\": \"20220102\",\n\t\"id\": \"aaa\",\n\t\"name\": \"jack1\"\n}, {\n\t\"date\": \"20220102\",\n\t\"id\": \"aaa\",\n\t\"name\": \"jack2\"\n}, {\n\t\"date\": \"20220102\",\n\t\"id\": \"bbb\",\n\t\"name\": \"jack3\"\n}, {\n\t\"date\": \"20220103\",\n\t\"id\": \"aaa\",\n\t\"name\": \"jack\"\n}]\n</code></pre>\n<p>\u9700\u8981\u6309\u65e5\u671f\u5206\u7ec4\uff0c\u518d\u7edf\u8ba1\u51fa\u6bcf\u5929\u7684\u6570\u636e\u603b\u6570\uff0c\u5404\u5b57\u6bb5\u5206\u7ec4\u540e\u7684\u6570\u91cf\uff0c\u671f\u671b\u5f97\u5230\u8fd9\u6837\u7684\u7ed3\u679c</p>\n<pre><code>date\t\tcount\tid_count\tname_count\n20220103\t1\t\t1           1\n20220102\t3\t\t2           3\n20220101\t2\t\t1           2\n</code></pre>\n<p>\u7814\u7a76\u4e86\u4e0b\u805a\u5408\u67e5\u8be2\uff0c<code>$group</code>\u6309\u7167<code>date</code>\u5206\u7ec4\u540e\u5c31\u6ca1\u6cd5\u7edf\u8ba1\u5176\u4ed6\u5b57\u6bb5\u7684\u5206\u7ec4\u6570\u91cf\u4e86\u3002\n\u8fd8\u6709\u4e2a<code>$push</code>\u53ef\u4ee5\u5728\u5206\u7ec4\u65f6\u5c06\u5176\u4ed6\u5b57\u6bb5\u538b\u5165\u5230\u65b0\u6570\u7ec4\uff0c\u4f46\u662f\u5176\u4e2d\u6570\u636e\u662f\u91cd\u590d\u7684\uff0c\u800c\u6211\u53ea\u662f\u60f3\u5f97\u5230\u5206\u7ec4\u540e\u7684\u6570\u91cf\u800c\u5df2\u3002</p>\n<p>\u76ee\u524d\u662f\u50bb\u4e4e\u4e4e\u7684\u67e5\u591a\u6b21\u3002\u53ef\u4ee5\u4e00\u6b21\u67e5\u51fa\u6765\u6211\u671f\u671b\u7684\u7ed3\u679c\u5417\uff1f</p>\n", 
      "date_published": "2022-01-05T12:08:36+00:00", 
      "title": "\u8bf7\u6559\u4e00\u4e2a\u67e5\u8be2\u7edf\u8ba1\u7684\u8bed\u53e5", 
      "id": "https://www.v2ex.com/t/826436"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/ptrees", 
        "name": "ptrees", 
        "avatar": "https://cdn.v2ex.com/avatar/3587/126e/230360_large.png?m=1638786963"
      }, 
      "url": "https://www.v2ex.com/t/825366", 
      "title": "Mongodb \u600e\u6837\u5bf9 key \u8fdb\u884c\u6a21\u7cca\u67e5\u8be2?", 
      "id": "https://www.v2ex.com/t/825366", 
      "date_published": "2021-12-30T11:09:40+00:00", 
      "content_html": "<p>\u76f4\u63a5\u4e0a\u4f8b\u5b50:\n{\n\"groups\": {\n\"a\": [\n{\n\"id\": 1,\n\"status\": \"open\"\n},\n{\n\"id\": 2,\n\"status\": \"open\"\n},\n{\n\"id\": 3,\n\"status\": \"closed\"\n}\n],\n\"b\": [\n{\n\"id\": 4,\n\"status\": \"closed\"\n},\n{\n\"id\": 5,\n\"status\": \"open\"\n},\n{\n\"id\": 6,\n\"status\": \"closed\"\n}\n]\n}\n}</p>\n<p>\u5bf9\u8fd9\u4e2a\u6570\u636e,\u600e\u4e48\u5b9e\u73b0\u7c7b\u4f3c find({\"groups.*.status\": \"closed\"}) \u8fd9\u6837\u7684\u67e5\u8be2?</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/datadump", 
        "name": "datadump", 
        "avatar": "https://cdn.v2ex.com/avatar/373a/9420/284506_large.png?m=1724288412"
      }, 
      "url": "https://www.v2ex.com/t/824143", 
      "title": "\u8bf7\u6559 mongo \u8fde\u63a5\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/824143", 
      "date_published": "2021-12-24T01:54:27+00:00", 
      "content_html": "<p><img alt=\"\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://s3.bmp.ovh/imgs/2021/12/ba6edcdba0a5f2ab.png\"/>\n<img alt=\"\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://s3.bmp.ovh/imgs/2021/12/0f372d18a01d0152.png\"/></p>\n<p>navicat \u8fde\u63a5\u6b63\u5e38\uff0cmongo \u547d\u4ee4\u884c\u4e0d\u5e26\u6570\u636e\u5e93\u540d\u6b63\u5e38\uff0c\u4f46\u662f\u540e\u9762\u52a0\u6570\u636e\u5e93\u540d\u5c31\u5931\u8d25\u4e86\uff1f</p>\n<p>\u8fd9\u662f\u4ec0\u4e48\u9519\u8bef\u5462\u3002\u8c22\u8c22</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/leebs", 
        "name": "leebs", 
        "avatar": "https://cdn.v2ex.com/gravatar/0da0fd3a8456f6bc8ac6a3be4de6746a?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/824113", 
      "date_modified": "2021-12-23T15:39:46+00:00", 
      "content_html": "<p>\u539f MongoDB \u6570\u636e\u5305\u542b ObjectId \u7c7b\u578b\u7684\u5b57\u6bb5\u3002</p>\n<p>\u6784\u5efa\u7f13\u5b58\u7684\u65f6\u5019\uff0c\u5c06 MongoDB \u6570\u636e\u901a\u8fc7 JSON.srtingify \u5b58\u50a8\u5230 redis \u4e2d\uff0c\u8fd9\u65f6\u5019 ObjectId \u7c7b\u578b\u7684\u5b57\u6bb5\u90fd\u4f1a\u53d8\u4e3a\u5b57\u7b26\u4e32\u3002</p>\n<p>\u53d6\u7f13\u5b58\u7684\u65f6\u5019\uff0c\u5982\u679c\u6211\u8981\u83b7\u53d6 ObjectId \u7c7b\u578b\u7684\u5b57\u6bb5\uff0c\u5c31\u5fc5\u987b\u624b\u52a8\u505a\u7c7b\u578b\u8f6c\u6362\u3002</p>\n<p>\u6709\u5176\u4ed6\u529e\u6cd5\u53ef\u4ee5\u6839\u636e Schema \u81ea\u52a8\u505a\u7c7b\u578b\u8f6c\u6362\u561b\uff1f\u6216\u8005 JSON.stringify \u4e0d\u8f6c\u6362 ObjectId \u7c7b\u578b\u3002</p>\n", 
      "date_published": "2021-12-23T15:39:21+00:00", 
      "title": "Mongodb \u5b57\u7b26\u4e32\u8f6c ObjectId", 
      "id": "https://www.v2ex.com/t/824113"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/wafm", 
        "name": "wafm", 
        "avatar": "https://cdn.v2ex.com/avatar/db81/0247/172206_large.png?m=1512464905"
      }, 
      "url": "https://www.v2ex.com/t/822169", 
      "title": "\u95ee\u4e2a\u589e\u91cf\u66f4\u65b0\u7684\u529e\u6cd5\u3002", 
      "id": "https://www.v2ex.com/t/822169", 
      "date_published": "2021-12-14T09:01:50+00:00", 
      "content_html": "<p>\u6211\u722c\u4e86\u4e00\u6bb5\u6570\u636e\n\u60f3\u7740\u589e\u91cf\u66f4\u65b0\u8fdb\u6570\u636e\u5e93\nbaidu google \u65e0\u679c\uff0c\u8bf7\u95ee\u4e00\u4e0b\u5404\u4f4d\u5927\u4f6c\u6709\u4ec0\u4e48\u5999\u62db\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Rkls", 
        "name": "Rkls", 
        "avatar": "https://cdn.v2ex.com/gravatar/b52023bdffd5f41b1faf62e2e87c15ff?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/820812", 
      "date_modified": "2021-12-08T02:48:51+00:00", 
      "content_html": "\u73b0\u5728 mongodb \u4e2d\u6709\u5982\u4e0b\u6570\u636e<br />{\t<br />\t\"_id\":\"111\",<br />\t\"bgtime\":\"bgtime\", <br />\t\"edtime\":\"edtime\",<br />    \"key1\":\"val1\",<br />    \"key2\":\"val2\",<br />    \"key3\":\"val3\"<br />}<br /><br />\u6211\u5199\u7684\u7a0b\u5e8f\u5bf9\u5e94\u7684 shell \u547d\u4ee4\u662f<br />db.coll.update(<br />{<br />\t\"bgtime\":{$exists:true},<br />    \"edtime\":{$exists:true},<br />    \"key1\":\"val1\",<br />    \"key2\":\"val2\"<br />},<br />{<br />\t$set:<br />    \t{<br />        \t\"bgtime\":\"bgtime\",<br />    \t\t\"edtime\":\"edtime\",<br />    \t\t\"key1\":\"val1\",<br />    \t\t\"key2\":\"val2\"<br />        }<br />},<br />{<br />\t$upsert:true<br />})<br />\u6211\u60f3\u8981\u83b7\u5f97\u7684\u7ed3\u679c\u662f\u4e00\u6761\u6570\u636e\u4e2d\u9664\u4e86\"_id\"\u5916\u53ea\u6709\u67e5\u8be2\u6761\u4ef6\u7684 4 \u4e2a key \uff0c\u5982\u679c\u67e5\u4e0d\u5230\u7684\u8fd9\u6837\u7684 document \u7684\u8bdd\uff0c\u5c06 update \u4e2d\u7684\u6587\u6863\u63d2\u5165\uff0c\u4f46\u662f\u6211\u5199\u7684\u8fc7\u6ee4\u6587\u6863\u56e0\u4e3a\u67e5\u5230\u4e86\u6570\u636e\u5e93\u4e2d\u7684\u4e0a\u8ff0\u7684\u6570\u636e\uff0c\u6240\u4ee5\u5c31\u4e0d\u4f1a\u518d\u505a\u63d2\u5165\u4e86\uff0c\u73b0\u5728\u6709\u4e24\u4e2a\u60f3\u6cd5\uff1a<br />\t1.\u5148\u4f7f\u7528 find_many \uff08 mongocxx \u4e2d\u7684 api \uff09\u627e\u5230\u6240\u6709\u5339\u914d\u5230\u7684\u6587\u6863\uff0c\u7136\u540e\u53bb\u548c\u6211\u7684\u952e\u503c\u5bf9\u505a\u5339\u914d\uff0c\u4f46\u662f\u8fd9\u6837\u5de5\u4f5c\u91cf\u6bd4\u8f83\u5927<br />    2.\u5728\u6bcf\u6b21\u63d2\u5165\u6570\u636e\u7684\u65f6\u5019\u90fd\u591a\u63d2\u5165\u4e00\u6761 key \u4e3a_index \u7684\u5b57\u6bb5\uff0c\u91cc\u9762\u7684 value \u4e3a\"key1val \uff08\u6b64\u5904\u8bbe\u8ba1\u4e00\u4e2a\u5206\u9694\u7b26\uff09 key2val2\",\u8fd9\u6837\u5199\u67e5\u8be2\u6761\u4ef6\u7684\u65f6\u5019\u76f4\u63a5\u62fc\u63a5_index \u7684 value \u4e5f\u662f\u53ef\u4ee5\u7684\u3002<br />\u73b0\u5728\u5c31\u662f\u60f3\u770b\u770b mongodb \u6709\u6ca1\u6709\u63d0\u4f9b\u8fd9\u6837\u4e00\u79cd\u65b9\u6cd5\uff0c\u76f4\u63a5\u505a\u5230\u5b8c\u5168\u5339\u914d\u5230\u6211\u67e5\u8be2\u7684\u6587\u6863", 
      "date_published": "2021-12-08T02:46:27+00:00", 
      "title": "\u6c42\u52a9\uff0c MongoDB \u4e2d\u67e5\u627e\u5982\u4f55\u505a\u5230\u5b8c\u5168\u5339\u914d", 
      "id": "https://www.v2ex.com/t/820812"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/IvanLi127", 
        "name": "IvanLi127", 
        "avatar": "https://cdn.v2ex.com/avatar/7066/8520/292549_large.png?m=1771691763"
      }, 
      "url": "https://www.v2ex.com/t/819589", 
      "date_modified": "2021-12-02T08:59:39+00:00", 
      "content_html": "<p>\u4e0b\u9762\u4e24\u6bb5\u4ee3\u7801\uff0c\u7b2c\u4e00\u6bb5\u53ea\u6709\u90e8\u5206\u8bb0\u5f55\u80fd\u66f4\u65b0\u6210\u529f\uff0c\u7b2c\u4e8c\u6bb5\u4ee3\u7801\u6b63\u5e38\u3002\u6709\u5927\u4f6c\u77e5\u9053\u5565\u539f\u56e0\u5417\uff1f</p>\n<pre><code class=\"language-typescript\">  await Promise.all(\n      tuples.map(async ([list, count]) =&gt; {\n        // await this.listModel.findOne({ _id: list }); // \u5b58\u5728\u8fd9\u884c\u4e5f\u6b63\u5e38\uff0c\u4e0d\u5b58\u5728\u7684\u8bdd\u5c31\u4e0d\u6b63\u5e38\u3002\n        await this.listModel.updateOne(\n          { _id: list },\n          {\n            $inc: {\n              sampleCount: -count,\n            },\n          },\n          { session },\n        );\n      }),\n    );\n</code></pre>\n<pre><code class=\"language-typescript\">  for (const [list, count] of tuples) {\n      await this.listModel.updateOne(\n        { _id: list },\n        {\n          $inc: {\n            sampleCount: -count,\n          },\n        },\n        { session },\n      );\n    }\n</code></pre>\n<p>\u6211\u6392\u67e5\u4e86\u4e0b\uff0cupdateOne \u65b9\u6cd5\u90fd\u80fd\u8fd4\u56de\u4fee\u6539\u6210\u529f\u4e00\u884c\u6570\u636e\uff0c\u6240\u4ee5\u66f4\u65b0\u662f\u6210\u529f\u7684\uff0c\u4f46\u662f\u6700\u540e\u4e8b\u52a1\u6267\u884c\u5b8c\u6bd5\u540e\u53ea\u67e5\u5230\u90e8\u5206\u6570\u636e\u6709\u6b63\u5e38\u66f4\u65b0\u3002 </p>\n<p>MongoDB 4.4 \u3002</p>\n", 
      "date_published": "2021-12-02T08:59:09+00:00", 
      "title": "MongoDB \u4e8b\u52a1 + Promise.all()\uff0c\u4f1a\u6709\u90e8\u5206\u6570\u636e\u64cd\u4f5c\u5931\u8d25\u3002\u8fd9\u662f\u4e3a\u5565\uff1f", 
      "id": "https://www.v2ex.com/t/819589"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/among", 
        "name": "among", 
        "avatar": "https://cdn.v2ex.com/avatar/4a56/94f4/417783_large.png?m=1711429226"
      }, 
      "url": "https://www.v2ex.com/t/819342", 
      "title": "mongodb \u4e2d\u7684\u9012\u5f52\u67e5\u627e\u5b50\u76ee\u5f55", 
      "id": "https://www.v2ex.com/t/819342", 
      "date_published": "2021-12-01T08:44:01+00:00", 
      "content_html": "<h1></h1>\n<pre><code class=\"language-python\"># \u76ee\u5f55\u8868\nclass TC_struct(Document):\n    name = StringField()    #\u76ee\u5f55\u540d\n    parent = ObjectIdField()    #\u4e0a\u5c42\u76ee\u5f55\u7684 id\n\n\n# \u6587\u4ef6\u8868\nclass TC_item(Document):\n    # \u6240\u5728\u76ee\u5f55\n    parent = ReferenceField(TC_struct) #\u6240\u5728\u7684\u76ee\u5f55\n</code></pre>\n<p>\u6839\u636e\u76ee\u5f55\uff0c\u9012\u5f52\u67e5\u627e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002</p>\n<p>#\u5148\u627e\u5230\u6240\u6709\u7684\u76ee\u5f55\u3002path_id \u4e3a\u6240\u9009\u62e9\u76ee\u5f55\u7684 id\npath_ls = recurs_path(TC_struct, path_id)</p>\n<p>#\u7136\u540e\u627e\u5230\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\nqry_list = Q(parent__in=path_ls)</p>\n<p>#\u9012\u5f52\u67e5\u627e\u76ee\u5f55\u7684\u65b9\u6cd5\u3002</p>\n<pre><code class=\"language-python\">def recurs_path(tb_cls, path_id):\n    rds = tb_cls.objects(parent=ObjectId(path_id)).only('id')\n    rt = list()\n    rt.append(ObjectId(path_id))\n    for rd in rds:\n        # \u9012\u5f52\u67e5\u627e\u5b50\u76ee\u5f55\u4e2d\u7684\u5b50\u76ee\u5f55\n        rt.extend(recurs_path(tb_cls, rd._id))\n    return rt\n</code></pre>\n<p>\u73b0\u5728\u7684\u95ee\u9898\u662f\uff0c\u5982\u679c\u76ee\u5f55\u7ed3\u6784\u5f88\u6df1\uff0c\u5982\u6709 4000 \u591a\u4e2a\u76ee\u5f55\uff0c\u5728\u9012\u5f52\u7684\u65f6\u5019\uff0c\u8017\u65f6\u7279\u522b\u957f\u3002</p>\n<p>\u6709\u6ca1\u6709\u65b9\u6cd5\uff0c\u53ef\u4ee5\u63d0\u5347\u9012\u5f52\u65f6\u7684\u6548\u7387\u3002\n\u6839\u672c\u7684\u9700\u6c42\u662f\uff1a\u9012\u5f52\u67e5\u627e\u76ee\u5f55\u4e2d\u7684\u6240\u6709\u6587\u4ef6\u3002</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/QGabriel", 
        "name": "QGabriel", 
        "avatar": "https://cdn.v2ex.com/avatar/c589/c6e8/440144_large.png?m=1646193143"
      }, 
      "url": "https://www.v2ex.com/t/817705", 
      "title": "\u6c42\u52a9 \u542f\u52a8\u670d\u52a1\u540e\u6267\u884c\u7a0b\u5e8f\u5c31\u81ea\u52a8\u9000\u51fa", 
      "id": "https://www.v2ex.com/t/817705", 
      "date_published": "2021-11-24T09:27:08+00:00", 
      "content_html": "mac \u7535\u8111 \u6267\u884c\u7a0b\u5e8f\u62a5\u9519\u5982\u4e0b:<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.891+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":23285,   \"ctx\":\"main\",\"msg\":\"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'\"}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.906+08:00\"},\"s\":\"W\",  \"c\":\"ASIO\",     \"id\":22601,   \"ctx\":\"main\",\"msg\":\"No TransportLayer configured during NetworkInterface startup\"}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.907+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":4648602, \"ctx\":\"main\",\"msg\":\"Implicit TCP FastOpen in use.\"}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.908+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":4615611, \"ctx\":\"initandlisten\",\"msg\":\"MongoDB starting\",\"attr\":{\"pid\":651,\"port\":27017,\"dbPath\":\"../db/\",\"architecture\":\"64-bit\",\"host\":\"DuDU\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.908+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":23403,   \"ctx\":\"initandlisten\",\"msg\":\"Build Info\",\"attr\":{\"buildInfo\":{\"version\":\"4.4.3\",\"gitVersion\":\"913d6b62acfbb344dde1b116f4161360acd8fd13\",\"modules\":[],\"allocator\":\"system\",\"environment\":{\"distarch\":\"x86_64\",\"target_arch\":\"x86_64\"}}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.909+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":51765,   \"ctx\":\"initandlisten\",\"msg\":\"Operating System\",\"attr\":{\"os\":{\"name\":\"Mac OS X\",\"version\":\"19.6.0\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.909+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":21951,   \"ctx\":\"initandlisten\",\"msg\":\"Options set by command line\",\"attr\":{\"options\":{\"storage\":{\"dbPath\":\"../db/\"}}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.911+08:00\"},\"s\":\"W\",  \"c\":\"STORAGE\",  \"id\":22271,   \"ctx\":\"initandlisten\",\"msg\":\"Detected unclean shutdown - Lock file is not empty\",\"attr\":{\"lockFile\":\"../db/mongod.lock\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.912+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22270,   \"ctx\":\"initandlisten\",\"msg\":\"Storage engine to use detected by data files\",\"attr\":{\"dbpath\":\"../db/\",\"storageEngine\":\"wiredTiger\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.912+08:00\"},\"s\":\"W\",  \"c\":\"STORAGE\",  \"id\":22302,   \"ctx\":\"initandlisten\",\"msg\":\"Recovering data from the last clean checkpoint.\"}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:55.912+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22315,   \"ctx\":\"initandlisten\",\"msg\":\"Opening WiredTiger\",\"attr\":{\"config\":\"create,cache_size=7680M,session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress,compact_progress],\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:56.721+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22430,   \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger message\",\"attr\":{\"message\":\"[1637745716:721730][651:0x116fc9dc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 248 through 249\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:56.784+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22430,   \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger message\",\"attr\":{\"message\":\"[1637745716:784976][651:0x116fc9dc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 249 through 249\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:56.847+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22430,   \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger message\",\"attr\":{\"message\":\"[1637745716:847170][651:0x116fc9dc0], txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Main recovery loop: starting at 248/256 to 249/256\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:56.848+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22430,   \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger message\",\"attr\":{\"message\":\"[1637745716:848367][651:0x116fc9dc0], txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 248 through 249\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:56.925+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22430,   \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger message\",\"attr\":{\"message\":\"[1637745716:925858][651:0x116fc9dc0], file:index-3-7599426911076859335.wt, txn-recover: [WT_VERB_RECOVERY_PROGRESS] Recovering log 249 through 249\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:56.966+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22430,   \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger message\",\"attr\":{\"message\":\"[1637745716:966567][651:0x116fc9dc0], file:index-3-7599426911076859335.wt, txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global recovery timestamp: (0, 0)\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:21:56.966+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22430,   \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger message\",\"attr\":{\"message\":\"[1637745716:966632][651:0x116fc9dc0], file:index-3-7599426911076859335.wt, txn-recover: [WT_VERB_RECOVERY | WT_VERB_RECOVERY_PROGRESS] Set global oldest timestamp: (0, 0)\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.603+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":4795906, \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger opened\",\"attr\":{\"durationMillis\":8691}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.603+08:00\"},\"s\":\"I\",  \"c\":\"RECOVERY\", \"id\":23987,   \"ctx\":\"initandlisten\",\"msg\":\"WiredTiger recoveryTimestamp\",\"attr\":{\"recoveryTimestamp\":{\"$timestamp\":{\"t\":0,\"i\":0}}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.609+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":4366408, \"ctx\":\"initandlisten\",\"msg\":\"No table logging settings modifications are required for existing WiredTiger tables\",\"attr\":{\"loggingEnabled\":true}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.617+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":22262,   \"ctx\":\"initandlisten\",\"msg\":\"Timestamp monitor starting\"}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.623+08:00\"},\"s\":\"W\",  \"c\":\"CONTROL\",  \"id\":22120,   \"ctx\":\"initandlisten\",\"msg\":\"Access control is not enabled for the database. Read and write access to data and configuration is unrestricted\",\"tags\":[\"startupWarnings\"]}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.624+08:00\"},\"s\":\"W\",  \"c\":\"CONTROL\",  \"id\":22138,   \"ctx\":\"initandlisten\",\"msg\":\"You are running this process as the root user, which is not recommended\",\"tags\":[\"startupWarnings\"]}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.624+08:00\"},\"s\":\"W\",  \"c\":\"CONTROL\",  \"id\":22140,   \"ctx\":\"initandlisten\",\"msg\":\"This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip &lt;address&gt; to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning\",\"tags\":[\"startupWarnings\"]}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.624+08:00\"},\"s\":\"W\",  \"c\":\"CONTROL\",  \"id\":22184,   \"ctx\":\"initandlisten\",\"msg\":\"Soft rlimits too low\",\"attr\":{\"currentValue\":256,\"recommendedMinimum\":64000},\"tags\":[\"startupWarnings\"]}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.645+08:00\"},\"s\":\"I\",  \"c\":\"STORAGE\",  \"id\":20536,   \"ctx\":\"initandlisten\",\"msg\":\"Flow Control is enabled on this deployment\"}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.649+08:00\"},\"s\":\"I\",  \"c\":\"FTDC\",     \"id\":20625,   \"ctx\":\"initandlisten\",\"msg\":\"Initializing full-time diagnostic data capture\",\"attr\":{\"dataDirectory\":\"../db/diagnostic.data\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.651+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":23015,   \"ctx\":\"listener\",\"msg\":\"Listening on\",\"attr\":{\"address\":\"/tmp/mongodb-27017.sock\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.651+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":23015,   \"ctx\":\"listener\",\"msg\":\"Listening on\",\"attr\":{\"address\":\"127.0.0.1\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:04.651+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":23016,   \"ctx\":\"listener\",\"msg\":\"Waiting for connections\",\"attr\":{\"port\":27017,\"ssl\":\"off\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:07.247+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":22943,   \"ctx\":\"listener\",\"msg\":\"Connection accepted\",\"attr\":{\"remote\":\"127.0.0.1:49394\",\"connectionId\":1,\"connectionCount\":1}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:07.248+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":51800,   \"ctx\":\"conn1\",\"msg\":\"client metadata\",\"attr\":{\"remote\":\"127.0.0.1:49394\",\"client\":\"conn1\",\"doc\":{\"driver\":{\"name\":\"PyMongo\",\"version\":\"3.11.2\"},\"os\":{\"type\":\"Darwin\",\"name\":\"Darwin\",\"architecture\":\"x86_64\",\"version\":\"10.15.7\"},\"platform\":\"CPython 3.8.7.final.0\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:07.249+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":22943,   \"ctx\":\"listener\",\"msg\":\"Connection accepted\",\"attr\":{\"remote\":\"127.0.0.1:49395\",\"connectionId\":2,\"connectionCount\":2}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:07.250+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":22943,   \"ctx\":\"listener\",\"msg\":\"Connection accepted\",\"attr\":{\"remote\":\"127.0.0.1:49396\",\"connectionId\":3,\"connectionCount\":3}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:07.250+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":51800,   \"ctx\":\"conn2\",\"msg\":\"client metadata\",\"attr\":{\"remote\":\"127.0.0.1:49395\",\"client\":\"conn2\",\"doc\":{\"driver\":{\"name\":\"PyMongo\",\"version\":\"3.11.2\"},\"os\":{\"type\":\"Darwin\",\"name\":\"Darwin\",\"architecture\":\"x86_64\",\"version\":\"10.15.7\"},\"platform\":\"CPython 3.8.7.final.0\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:07.250+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":51800,   \"ctx\":\"conn3\",\"msg\":\"client metadata\",\"attr\":{\"remote\":\"127.0.0.1:49396\",\"client\":\"conn3\",\"doc\":{\"driver\":{\"name\":\"PyMongo\",\"version\":\"3.11.2\"},\"os\":{\"type\":\"Darwin\",\"name\":\"Darwin\",\"architecture\":\"x86_64\",\"version\":\"10.15.7\"},\"platform\":\"CPython 3.8.7.final.0\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:15.965+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":22943,   \"ctx\":\"listener\",\"msg\":\"Connection accepted\",\"attr\":{\"remote\":\"127.0.0.1:49422\",\"connectionId\":4,\"connectionCount\":4}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:15.965+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":51800,   \"ctx\":\"conn4\",\"msg\":\"client metadata\",\"attr\":{\"remote\":\"127.0.0.1:49422\",\"client\":\"conn4\",\"doc\":{\"application\":{\"name\":\"robo3t-1.4.2\"},\"driver\":{\"name\":\"MongoDB Internal Client\",\"version\":\"4.2.6-18-g6cdb6ab\"},\"os\":{\"type\":\"Darwin\",\"name\":\"Mac OS X\",\"architecture\":\"x86_64\",\"version\":\"19.6.0\"}}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.005+08:00\"},\"s\":\"I\",  \"c\":\"NETWORK\",  \"id\":23018,   \"ctx\":\"listener\",\"msg\":\"Error accepting new connection on local endpoint\",\"attr\":{\"localEndpoint\":\"127.0.0.1:27017\",\"error\":\"Too many open files\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.631+08:00\"},\"s\":\"E\",  \"c\":\"STORAGE\",  \"id\":22435,   \"ctx\":\"thread5\",\"msg\":\"WiredTiger error\",\"attr\":{\"error\":24,\"message\":\"[1637745736:631536][651:0x7000060ff000], log-server: __directory_list_worker, 46: ../db//journal: directory-list: opendir: Too many open files\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.631+08:00\"},\"s\":\"E\",  \"c\":\"STORAGE\",  \"id\":22435,   \"ctx\":\"thread5\",\"msg\":\"WiredTiger error\",\"attr\":{\"error\":24,\"message\":\"[1637745736:631685][651:0x7000060ff000], log-server: __log_prealloc_once, 505: log pre-alloc server error: Too many open files\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.631+08:00\"},\"s\":\"E\",  \"c\":\"STORAGE\",  \"id\":22435,   \"ctx\":\"thread5\",\"msg\":\"WiredTiger error\",\"attr\":{\"error\":24,\"message\":\"[1637745736:631712][651:0x7000060ff000], log-server: __log_server, 961: log server error: Too many open files\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.631+08:00\"},\"s\":\"E\",  \"c\":\"STORAGE\",  \"id\":22435,   \"ctx\":\"thread5\",\"msg\":\"WiredTiger error\",\"attr\":{\"error\":-31804,\"message\":\"[1637745736:631736][651:0x7000060ff000], log-server: __log_server, 961: the process must exit and restart: WT_PANIC: WiredTiger library panic\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.631+08:00\"},\"s\":\"F\",  \"c\":\"-\",        \"id\":23089,   \"ctx\":\"thread5\",\"msg\":\"Fatal assertion\",\"attr\":{\"msgid\":50853,\"file\":\"src/mongo/db/storage/wiredtiger/wiredtiger_util.cpp\",\"line\":520}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.631+08:00\"},\"s\":\"F\",  \"c\":\"-\",        \"id\":23090,   \"ctx\":\"thread5\",\"msg\":\"\\n\\n***aborting after fassert() failure\\n\\n\"}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.631+08:00\"},\"s\":\"F\",  \"c\":\"CONTROL\",  \"id\":4757800, \"ctx\":\"thread5\",\"msg\":\"Writing fatal message\",\"attr\":{\"message\":\"Got signal: 6 (Abort trap: 6).\\n\"}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31431,   \"ctx\":\"thread5\",\"msg\":\"BACKTRACE: {bt}\",\"attr\":{\"bt\":{\"backtrace\":[{\"a\":\"10BA5DB9C\",\"b\":\"1098F2000\",\"o\":\"216BB9C\",\"s\":\"_ZN5mongo18stack_trace_detail12_GLOBAL__N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE\",\"s+\":\"10C\"},{\"a\":\"10BA5F2A8\",\"b\":\"1098F2000\",\"o\":\"216D2A8\",\"s\":\"_ZN5mongo15printStackTraceEv\",\"s+\":\"28\"},{\"a\":\"10BA5CDDB\",\"b\":\"1098F2000\",\"o\":\"216ADDB\",\"s\":\"_ZN5mongo12_GLOBAL__N_116abruptQuitActionEiP9__siginfoPv\",\"s+\":\"BB\"},{\"a\":\"7FFF6B6465FD\",\"b\":\"7FFF6B643000\",\"o\":\"35FD\",\"s\":\"_sigtramp\",\"s+\":\"1D\"},{\"a\":\"0\"},{\"a\":\"7FFF6B51C808\",\"b\":\"7FFF6B49D000\",\"o\":\"7F808\",\"s\":\"abort\",\"s+\":\"78\"},{\"a\":\"10BA442D7\",\"b\":\"1098F2000\",\"o\":\"21522D7\",\"s\":\"_ZN5mongo25fassertFailedWithLocationEiPKcj\",\"s+\":\"197\"},{\"a\":\"1099BF6FB\",\"b\":\"1098F2000\",\"o\":\"CD6FB\",\"s\":\"_ZN5mongo12_GLOBAL__N_141mdb_handle_error_with_startup_suppressionEP18__wt_event_handlerP12__wt_sessioniPKc\",\"s+\":\"1FB\"},{\"a\":\"109B2AAE7\",\"b\":\"1098F2000\",\"o\":\"238AE7\",\"s\":\"__eventv\",\"s+\":\"607\"},{\"a\":\"109B2AD66\",\"b\":\"1098F2000\",\"o\":\"238D66\",\"s\":\"__wt_panic_func\",\"s+\":\"FD\"},{\"a\":\"109A4659E\",\"b\":\"1098F2000\",\"o\":\"15459E\",\"s\":\"__log_server\",\"s+\":\"44E\"},{\"a\":\"7FFF6B652109\",\"b\":\"7FFF6B64C000\",\"o\":\"6109\",\"s\":\"_pthread_start\",\"s+\":\"94\"},{\"a\":\"7FFF6B64DB8B\",\"b\":\"7FFF6B64C000\",\"o\":\"1B8B\",\"s\":\"thread_start\",\"s+\":\"F\"}],\"processInfo\":{\"mongodbVersion\":\"4.4.3\",\"gitVersion\":\"913d6b62acfbb344dde1b116f4161360acd8fd13\",\"compiledModules\":[],\"uname\":{\"sysname\":\"Darwin\",\"release\":\"19.6.0\",\"version\":\"Darwin Kernel Version 19.6.0: Thu Oct 29 22:56:45 PDT 2020; root:xnu-6153.141.2.2~1/RELEASE_X86_64\",\"machine\":\"x86_64\"},\"somap\":[{\"path\":\"/Users/quanwei/Desktop/mongodb/bin/./mongod\",\"machType\":2,\"b\":\"1098F2000\",\"vmaddr\":\"100000000\",\"buildId\":\"88F05A2CDBD83B9F98DAF635FC65C2E6\"},{\"path\":\"/usr/lib/system/libsystem_c.dylib\",\"machType\":6,\"b\":\"7FFF6B49D000\",\"vmaddr\":\"7FFF67253000\",\"buildId\":\"BBDED5E6A6463EEDB33A91E4331EA063\"},{\"path\":\"/usr/lib/system/libsystem_platform.dylib\",\"machType\":6,\"b\":\"7FFF6B643000\",\"vmaddr\":\"7FFF673F9000\",\"buildId\":\"009A7C1F313A318EB9F230F4C06FEA5C\"},{\"path\":\"/usr/lib/system/libsystem_pthread.dylib\",\"machType\":6,\"b\":\"7FFF6B64C000\",\"vmaddr\":\"7FFF67402000\",\"buildId\":\"62CB1A980B8F31E7A02BA1139927F61D\"}]}}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"10BA5DB9C\",\"b\":\"1098F2000\",\"o\":\"216BB9C\",\"s\":\"_ZN5mongo18stack_trace_detail12_GLOBAL__N_119printStackTraceImplERKNS1_7OptionsEPNS_14StackTraceSinkE\",\"s+\":\"10C\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"10BA5F2A8\",\"b\":\"1098F2000\",\"o\":\"216D2A8\",\"s\":\"_ZN5mongo15printStackTraceEv\",\"s+\":\"28\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"10BA5CDDB\",\"b\":\"1098F2000\",\"o\":\"216ADDB\",\"s\":\"_ZN5mongo12_GLOBAL__N_116abruptQuitActionEiP9__siginfoPv\",\"s+\":\"BB\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"7FFF6B6465FD\",\"b\":\"7FFF6B643000\",\"o\":\"35FD\",\"s\":\"_sigtramp\",\"s+\":\"1D\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"0\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"7FFF6B51C808\",\"b\":\"7FFF6B49D000\",\"o\":\"7F808\",\"s\":\"abort\",\"s+\":\"78\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"10BA442D7\",\"b\":\"1098F2000\",\"o\":\"21522D7\",\"s\":\"_ZN5mongo25fassertFailedWithLocationEiPKcj\",\"s+\":\"197\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"1099BF6FB\",\"b\":\"1098F2000\",\"o\":\"CD6FB\",\"s\":\"_ZN5mongo12_GLOBAL__N_141mdb_handle_error_with_startup_suppressionEP18__wt_event_handlerP12__wt_sessioniPKc\",\"s+\":\"1FB\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"109B2AAE7\",\"b\":\"1098F2000\",\"o\":\"238AE7\",\"s\":\"__eventv\",\"s+\":\"607\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"109B2AD66\",\"b\":\"1098F2000\",\"o\":\"238D66\",\"s\":\"__wt_panic_func\",\"s+\":\"FD\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"109A4659E\",\"b\":\"1098F2000\",\"o\":\"15459E\",\"s\":\"__log_server\",\"s+\":\"44E\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"7FFF6B652109\",\"b\":\"7FFF6B64C000\",\"o\":\"6109\",\"s\":\"_pthread_start\",\"s+\":\"94\"}}}<br />{\"t\":{\"$date\":\"2021-11-24T17:22:16.641+08:00\"},\"s\":\"I\",  \"c\":\"CONTROL\",  \"id\":31427,   \"ctx\":\"thread5\",\"msg\":\"  Frame: {frame}\",\"attr\":{\"frame\":{\"a\":\"7FFF6B64DB8B\",\"b\":\"7FFF6B64C000\",\"o\":\"1B8B\",\"s\":\"thread_start\",\"s+\":\"F\"}}}<br />zsh: abort      sudo ./mongod --dbpath ../db/"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/vvhhaaattt", 
        "name": "vvhhaaattt", 
        "avatar": "https://cdn.v2ex.com/gravatar/78a7f7ab0ef9e669c8f51677897c1ad4?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/816718", 
      "title": "\u5217\u4e86 MongoDB \u7684 Golang \u4f7f\u7528\uff0c\u6ce8\u5165\u653b\u51fb\u9632\u8303\u9700\u8981\u6ce8\u610f\u7684\u70b9\uff0c\u8bf7\u5927\u5bb6\u770b\u770b\u8fd8\u6709\u5176\u4ed6\u9700\u8981\u6ce8\u610f\u7684\u6ca1\uff1f", 
      "id": "https://www.v2ex.com/t/816718", 
      "date_published": "2021-11-20T02:37:11+00:00", 
      "content_html": "<ol>\n<li>\u770b\u5230\u76f8\u5173 php+mongodb \u7684\u793a\u4f8b\uff0c\u770b\u6f0f\u6d1e\u539f\u56e0\uff0c\u611f\u89c9\u4e3b\u8981 php \u52a8\u6001\u8bed\u8a00\u5bf9\u53c2\u6570\u8fdb\u884c\u89e3\u6790\u53d8\u4e3a\u4e86 php \u4e2d\u7684\u5408\u6cd5\u590d\u6742\u7c7b\u578b\uff0c\u540e\u4f20\u9012\u7ed9 mongodb \u7684\u9a71\u52a8\u3002\u8fd9\u6837\u7528\u6237\u8f93\u5165\u53ef\u80fd\u89e3\u6790\u4e3a\u5408\u6cd5\u7684\u5217\u8868\u4e4b\u7c7b\u7684 php \u5bf9\u8c61\uff0c\u4ee5\u53ca\u672a\u533a\u5206 bson \u4e2d\u7684 String \u8ddf JavaScript \u7c7b\u578b\uff0c\u4ece\u800c\u9020\u6210\u6ce8\u5165\u3002</li>\n<li>\u6211\u770b\u4e86\u4e0b Golang \u7684 MongoDB \u5b98\u65b9\u9a71\u52a8\uff0cBSON \u5bf9 JavaScript \u7c7b\u578b\u7684\u6570\u636e\u662f\u8ddf string \u5206\u5f00\u8fdb\u884c\u5904\u7406\u7684\uff0c\u5bf9 string \u6709\u505a\u8f6c\u4e49\uff0c\u800c golang \u4e2d\u8f93\u5165\u4e00\u822c\u662f string \u7c7b\u578b\u7684\u3002 </li>\n</ol>\n<p>\u95ee\u9898\uff1a \u90a3\u5728 Golang \u4f7f\u7528 MongoDB \u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c MongoDB \u67e5\u8be2\u4e0d\u4f20\u62fc\u63a5\u540e\u7684 JavaScript \uff0c\u53ea\u6709\u5355\u7eaf\u7684 string \uff0c\u662f\u5426\u53ef\u4ee5\u9632\u6b62\u76f8\u5173\u6ce8\u5165\u5462\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/yinft", 
        "name": "yinft", 
        "avatar": "https://cdn.v2ex.com/gravatar/6e4643352dff32d9fcfd8f750610fdf2?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/811443", 
      "date_modified": "2021-10-29T05:39:48+00:00", 
      "content_html": "<p>mongodb \u91cc\u9762 \u5bf9\u6807 mysql \u7684 case when \u662f\u600e\u4e48\u67e5\u8be2\u7684\uff0c\u627e\u4e86\u534a\u5929\u6ca1\u627e\u5230\u5b9e\u7528\u7684\u3002\u7528 mongotemplate \u600e\u4e48\u5199\uff0c\u9ebb\u70e6\u6709\u6ca1\u6709\u5927\u4f6c\u7ed9\u4e2a\u8d44\u6599\u6216\u8005\u76f4\u63a5\u6307\u70b9\u4e00\u4e0b\u3002\n<img alt=\"4346e3eb11bd4d389afeabbd916c121.png\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://i.loli.net/2021/10/28/VtpcxXsiBbeuYO3.png\"/></p>\n<p>\u6211\u60f3\u6309\u7167\u8fd9\u4e2a startTime \uff0c\u6bcf\u5929\u5206\u7ec4\u6c42\u548c\uff0c \u628a 6 \u70b9\u5230 9 \u70b9\u7684 flowInNum \u5b57\u6bb5\u6570\u636e\u6c42\u548c\u7136\u540e\u7ed9\u4e2a\u65b0\u5b57\u6bb5 monring \u9ed8\u8ba4\u662f\u65e9\u4e0a \u628a 11 \u70b9\u5230 13 \u70b9\u7684 flowInNum \u5b57\u6bb5\u6570\u636e\u6c42\u548c\u7136\u540e\u7ed9\u4e2a\u65b0\u5b57\u6bb5 afternoon \u9ed8\u8ba4\u662f\u4e2d\u5348 \u628a 18 \u70b9\u5230 20 \u70b9\u7684 flowInNum \u5b57\u6bb5\u6570\u636e\u6c42\u548c\u7136\u540e\u7ed9\u4e2a\u65b0\u5b57\u6bb5 night \u9ed8\u8ba4\u662f\u665a\u4e0a</p>\n", 
      "date_published": "2021-10-29T02:13:44+00:00", 
      "title": "\u6c42\u52a9\u5e16", 
      "id": "https://www.v2ex.com/t/811443"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/yinft", 
        "name": "yinft", 
        "avatar": "https://cdn.v2ex.com/gravatar/6e4643352dff32d9fcfd8f750610fdf2?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/811256", 
      "date_modified": "2021-10-28T06:30:37+00:00", 
      "content_html": "<p>mongodb \u91cc\u9762 \u5bf9\u6807 mysql \u7684 case when \u662f\u600e\u4e48\u67e5\u8be2\u7684\uff0c\u627e\u4e86\u534a\u5929\u6ca1\u627e\u5230\u5b9e\u7528\u7684\u3002\u7528 mongotemplate \u600e\u4e48\u5199\uff0c\u9ebb\u70e6\u6709\u6ca1\u6709\u5927\u4f6c\u7ed9\u4e2a\u8d44\u6599\u6216\u8005\u76f4\u63a5\u6307\u70b9\u4e00\u4e0b\u3002\n<img alt=\"4346e3eb11bd4d389afeabbd916c121.png\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://i.loli.net/2021/10/28/VtpcxXsiBbeuYO3.png\"/></p>\n<p>\u6211\u60f3\u6309\u7167\u8fd9\u4e2a startTime \uff0c\u6bcf\u5929\u5206\u7ec4\u6c42\u548c\uff0c \u628a 6 \u70b9\u5230 9 \u70b9\u7684 flowInNum \u5b57\u6bb5\u6570\u636e\u6c42\u548c\u7136\u540e\u7ed9\u4e2a\u65b0\u5b57\u6bb5 monring \u90fd\u9ed8\u8ba4\u662f\u65e9\u4e0a\n\u628a 11 \u70b9\u5230 13 \u70b9\u7684 flowInNum \u5b57\u6bb5\u6570\u636e\u6c42\u548c\u7136\u540e\u7ed9\u4e2a\u65b0\u5b57\u6bb5 afternoon \u90fd\u9ed8\u8ba4\u662f\u4e2d\u5348\n\u628a 18 \u70b9\u5230 20 \u70b9\u7684 flowInNum \u5b57\u6bb5\u6570\u636e\u6c42\u548c\u7136\u540e\u7ed9\u4e2a\u65b0\u5b57\u6bb5 night \u90fd\u9ed8\u8ba4\u662f\u665a\u4e0a</p>\n", 
      "date_published": "2021-10-28T06:27:41+00:00", 
      "title": "mongodb \u67e5\u8be2\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/811256"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/sunhk25", 
        "name": "sunhk25", 
        "avatar": "https://cdn.v2ex.com/avatar/28eb/72be/47073_large.png?m=1732929263"
      }, 
      "url": "https://www.v2ex.com/t/806007", 
      "title": "mongodb \u8fde\u63a5\u52a0\u4e0a auth \u8ba4\u8bc1\u540e\uff0c\u6570\u636e\u5e93\u5207\u6362\u4f1a\u82b1\u6389 0.5 \u79d2 \uff0c\u591a\u4e2a\u6570\u636e\u5e93\u95f4\u5207\u6362\u65f6\u4f1a\u5f88\u6162\u3002", 
      "id": "https://www.v2ex.com/t/806007", 
      "date_published": "2021-10-05T14:41:05+00:00", 
      "content_html": "\u6709\u5f88\u591a\u6570\u636e\u5e93\uff0c\u9700\u8981\u5207\u6362\u6765\u7edf\u8ba1\u6bcf\u4e2a DB \u7684\u6570\u636e\u3002<br />\u6ca1\u52a0\u8ba4\u8bc1\u65f6\u5f88\u5feb\uff08 0.0 \u79d2\u7ea7\uff09\uff0c\u4f46\u662f\u52a0\u4e0a auth \u540e\u6bcf\u4e2a DB \u7684\u5207\u6362\u90fd\u4f1a\u82b1\u53bb 0.5 \u79d2\u5de6\u53f3\u3002<br />roles \uff1d root\uff0creadWriteAnyDatabase \u90fd\u8bd5\u4e86\u4e0b\uff0c\u7ed3\u679c\u90fd\u4e00\u6837\u3002<br />\u8bf7\u95ee\u4ec0\u4e48\u53c2\u6570\u8bbe\u7f6e\u8bfe\u9898\u63d0\u9ad8\u901f\u5ea6\u5417\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/hvboekml", 
        "name": "hvboekml", 
        "avatar": "https://cdn.v2ex.com/avatar/d675/4414/237109_large.png?m=1569381796"
      }, 
      "url": "https://www.v2ex.com/t/802474", 
      "date_modified": "2021-09-17T02:18:37+00:00", 
      "content_html": "<p>\u6211\u6709\u4e2a\u7f51\u7ad9\u7528\u7684\u662f MongoDB \u6570\u636e\u5e93\uff0c\u641e\u4e0d\u61c2\u7684\u5730\u65b9\u5728\u4e8e\u7f51\u7ad9\u6b63\u5e38\uff0c\u4f46\u662f mongo \u8fde\u4e0d\u4e0a\u3002</p>\n<p>\u6700\u8fd1\u6ca1\u52a8\u8fc7\u914d\u7f6e\uff0c\u4e0d\u6562\u8d38\u7136\u91cd\u542f\u670d\u52a1\uff0c\u6c42\u6559\u4e0b\u5404\u4f4d</p>\n", 
      "date_published": "2021-09-17T02:17:54+00:00", 
      "title": "\u767e\u601d\u4e0d\u5f97\u5176\u89e3\u7684 MongoDB \u95ee\u9898\uff1a\u670d\u52a1\u6b63\u5e38\uff0c\u4f46\u8fde\u63a5\u4e0d\u4e0a", 
      "id": "https://www.v2ex.com/t/802474"
    }
  ]
}