{"id":263,"date":"2026-09-23T10:23:42","date_gmt":"2026-09-23T02:23:42","guid":{"rendered":"https:\/\/yykcj.com\/?p=263"},"modified":"2026-09-23T10:23:42","modified_gmt":"2026-09-23T02:23:42","slug":"mongodb-%e8%81%9a%e5%90%88%e7%ae%a1%e9%81%93%e5%ae%9e%e6%88%98%ef%bc%9a%e4%bb%8e%e6%85%a2%e6%9f%a5%e8%af%a2%e5%88%b0%e5%ae%9e%e6%97%b6%e5%88%86%e6%9e%90","status":"publish","type":"post","link":"https:\/\/yykcj.com\/?p=263","title":{"rendered":"MongoDB \u805a\u5408\u7ba1\u9053\u5b9e\u6218\uff1a\u4ece\u6162\u67e5\u8be2\u5230\u5b9e\u65f6\u5206\u6790"},"content":{"rendered":"<h2>\u4e3a\u4ec0\u4e48\u4f60\u7684 MongoDB \u805a\u5408\u67e5\u8be2\u603b\u662f\u5f88\u6162\uff1f<\/h2>\n<p>\u5f88\u591a\u5f00\u53d1\u8005\u5bf9 MongoDB \u805a\u5408\u7ba1\u9053\u7684\u5370\u8c61\u662f\u201c\u529f\u80fd\u5f3a\u5927\u4f46\u6027\u80fd\u582a\u5fe7\u201d\u3002\u5b9e\u9645\u4e0a\uff0c\u5927\u90e8\u5206\u6027\u80fd\u95ee\u9898\u6e90\u4e8e\u5bf9\u7ba1\u9053\u6267\u884c\u987a\u5e8f\u548c\u7d22\u5f15\u5229\u7528\u7684\u8bef\u89e3\u3002\u672c\u6587\u4ee5\u4e00\u4e2a\u771f\u5b9e\u7684\u7535\u5546\u8ba2\u5355\u5206\u6790\u9700\u6c42\u4e3a\u4f8b\uff0c\u5e26\u4f60\u4ece\u96f6\u6784\u5efa\u4e00\u4e2a\u9ad8\u6548\u7684\u805a\u5408\u67e5\u8be2\uff0c\u5e76\u5206\u4eab\u6211\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u603b\u7ed3\u7684\u4f18\u5316\u7ecf\u9a8c\u3002<\/p>\n<h3>\u573a\u666f\u4e0e\u6570\u636e\u51c6\u5907<\/h3>\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a <code>orders<\/code> \u96c6\u5408\uff0c\u5b58\u50a8\u8ba2\u5355\u4fe1\u606f\uff0c\u4ee5\u53ca\u4e00\u4e2a <code>users<\/code> \u96c6\u5408\uff0c\u5b58\u50a8\u7528\u6237\u4fe1\u606f\u3002\u8ba2\u5355\u6587\u6863\u7ed3\u6784\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-javascript\">\n\/\/ orders \u96c6\u5408\u793a\u4f8b\u6587\u6863\n{\n  _id: ObjectId(),\n  orderNo: &quot;202405200001&quot;,\n  userId: ObjectId(&quot;...&quot;),\n  status: &quot;completed&quot;, \/\/ pending, completed, cancelled\n  totalAmount: 299.00,\n  items: [\n    { productId: ObjectId(&quot;...&quot;), name: &quot;\u65e0\u7ebf\u8033\u673a&quot;, price: 199.00, quantity: 1 },\n    { productId: ObjectId(&quot;...&quot;), name: &quot;\u624b\u673a\u58f3&quot;, price: 100.00, quantity: 1 }\n  ],\n  createdAt: ISODate(&quot;2024-05-20T10:00:00Z&quot;),\n  paidAt: ISODate(&quot;2024-05-20T10:05:00Z&quot;)\n}\n<\/code><\/pre>\n<p>\u7528\u6237\u6587\u6863\u7ed3\u6784\uff1a<\/p>\n<pre><code class=\"language-javascript\">\n\/\/ users \u96c6\u5408\u793a\u4f8b\u6587\u6863\n{\n  _id: ObjectId(&quot;...&quot;),\n  name: &quot;\u5f20\u4e09&quot;,\n  level: &quot;VIP&quot;, \/\/ \u666e\u901a\u3001VIP\u3001SVIP\n  city: &quot;\u5317\u4eac&quot;\n}\n<\/code><\/pre>\n<p>\u6211\u4eec\u7684\u76ee\u6807\u662f\uff1a<strong>\u7edf\u8ba1 2024 \u5e74 5 \u6708\u6bcf\u4e2a\u57ce\u5e02 VIP \u53ca\u4ee5\u4e0a\u7528\u6237\u7684\u8ba2\u5355\u603b\u91d1\u989d\u548c\u8ba2\u5355\u6570\uff0c\u5e76\u6309\u603b\u91d1\u989d\u964d\u5e8f\u6392\u5217\uff0c\u53ea\u53d6\u524d 10 \u4e2a\u57ce\u5e02\u3002<\/strong><\/p>\n<h3>\u7b2c\u4e00\u6b65\uff1a\u6784\u5efa\u57fa\u7840\u805a\u5408\u7ba1\u9053<\/h3>\n<p>\u5148\u5199\u51fa\u6700\u76f4\u89c2\u7684\u7ba1\u9053\uff0c\u518d\u9010\u6b65\u4f18\u5316\u3002<\/p>\n<pre><code class=\"language-javascript\">\ndb.orders.aggregate([\n  \/\/ 1. \u7b5b\u9009\u65f6\u95f4\u8303\u56f4\u548c\u8ba2\u5355\u72b6\u6001\n  {\n    $match: {\n      createdAt: { $gte: ISODate(&quot;2024-05-01&quot;), $lt: ISODate(&quot;2024-06-01&quot;) },\n      status: &quot;completed&quot;\n    }\n  },\n  \/\/ 2. \u5173\u8054\u7528\u6237\u4fe1\u606f\n  {\n    $lookup: {\n      from: &quot;users&quot;,\n      localField: &quot;userId&quot;,\n      foreignField: &quot;_id&quot;,\n      as: &quot;user&quot;\n    }\n  },\n  \/\/ 3. \u5c55\u5f00\u7528\u6237\u6570\u7ec4\uff08\u6bcf\u4e2a\u8ba2\u5355\u5bf9\u5e94\u4e00\u4e2a\u7528\u6237\uff09\n  { $unwind: &quot;$user&quot; },\n  \/\/ 4. \u7b5b\u9009 VIP \u53ca\u4ee5\u4e0a\u7528\u6237\n  { $match: { &quot;user.level&quot;: { $in: [&quot;VIP&quot;, &quot;SVIP&quot;] } } },\n  \/\/ 5. \u6309\u57ce\u5e02\u5206\u7ec4\u7edf\u8ba1\n  {\n    $group: {\n      _id: &quot;$user.city&quot;,\n      totalAmount: { $sum: &quot;$totalAmount&quot; },\n      orderCount: { $sum: 1 }\n    }\n  },\n  \/\/ 6. \u6392\u5e8f\u5e76\u53d6\u524d10\n  { $sort: { totalAmount: -1 } },\n  { $limit: 10 },\n  \/\/ 7. \u7f8e\u5316\u8f93\u51fa\u5b57\u6bb5\n  {\n    $project: {\n      _id: 0,\n      city: &quot;$_id&quot;,\n      totalAmount: 1,\n      orderCount: 1\n    }\n  }\n])\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u7ba1\u9053\u80fd\u8dd1\u51fa\u7ed3\u679c\uff0c\u4f46\u5728\u6570\u636e\u91cf\u5927\u65f6\uff08\u6bd4\u5982\u767e\u4e07\u7ea7\u8ba2\u5355\uff09\u4f1a\u975e\u5e38\u6162\u3002\u95ee\u9898\u51fa\u5728 <code>$lookup<\/code> \u548c <code>$unwind<\/code> \u7684\u4f4d\u7f6e\u3002<\/p>\n<h3>\u7b2c\u4e8c\u6b65\uff1a\u4f18\u5316\u6838\u5fc3\u2014\u2014\u5c3d\u65e9\u8fc7\u6ee4\uff0c\u51cf\u5c11\u6570\u636e\u6d41<\/h3>\n<p>\u805a\u5408\u7ba1\u9053\u662f\u6d41\u5f0f\u5904\u7406\uff0c\u6bcf\u4e2a\u9636\u6bb5\u90fd\u4f1a\u6d88\u8017\u5185\u5b58\u548c CPU\u3002<strong>\u9ec4\u91d1\u6cd5\u5219\uff1a\u5c3d\u53ef\u80fd\u65e9\u5730\u51cf\u5c11\u6587\u6863\u6570\u91cf\u3002<\/strong><\/p>\n<p>\u5728\u4e0a\u9762\u7684\u7ba1\u9053\u4e2d\uff0c<code>$lookup<\/code> \u53d1\u751f\u5728 <code>$match<\/code> \u4e4b\u540e\uff0c\u4f46 <code>$match<\/code> \u53ea\u8fc7\u6ee4\u4e86\u8ba2\u5355\uff0c\u6ca1\u6709\u8fc7\u6ee4\u7528\u6237\u7b49\u7ea7\u3002\u8fd9\u610f\u5473\u7740\u6240\u6709 5 \u6708\u4efd\u7684\u5df2\u5b8c\u6210\u8ba2\u5355\u90fd\u4f1a\u53c2\u4e0e <code>$lookup<\/code>\uff0c\u5373\u4f7f\u5176\u4e2d\u5927\u90e8\u5206\u7528\u6237\u4e0d\u662f VIP\u3002<\/p>\n<p><strong>\u4f18\u5316\u601d\u8def\uff1a\u5148\u627e\u51fa\u7b26\u5408\u6761\u4ef6\u7684\u7528\u6237 ID\uff0c\u518d\u8fc7\u6ee4\u8ba2\u5355\u3002<\/strong><\/p>\n<pre><code class=\"language-javascript\">\n\/\/ \u5148\u83b7\u53d6\u6240\u6709 VIP \u53ca\u4ee5\u4e0a\u7528\u6237\u7684 ID\nconst vipUserIds = db.users.distinct(&quot;_id&quot;, { level: { $in: [&quot;VIP&quot;, &quot;SVIP&quot;] } });\n\n\/\/ \u7136\u540e\u5728\u805a\u5408\u4e2d\u76f4\u63a5\u8fc7\u6ee4\ndb.orders.aggregate([\n  {\n    $match: {\n      createdAt: { $gte: ISODate(&quot;2024-05-01&quot;), $lt: ISODate(&quot;2024-06-01&quot;) },\n      status: &quot;completed&quot;,\n      userId: { $in: vipUserIds } \/\/ \u63d0\u524d\u8fc7\u6ee4\uff0c\u5927\u5e45\u51cf\u5c11\u6587\u6863\u6570\n    }\n  },\n  {\n    $lookup: {\n      from: &quot;users&quot;,\n      localField: &quot;userId&quot;,\n      foreignField: &quot;_id&quot;,\n      as: &quot;user&quot;\n    }\n  },\n  { $unwind: &quot;$user&quot; },\n  {\n    $group: {\n      _id: &quot;$user.city&quot;,\n      totalAmount: { $sum: &quot;$totalAmount&quot; },\n      orderCount: { $sum: 1 }\n    }\n  },\n  { $sort: { totalAmount: -1 } },\n  { $limit: 10 },\n  {\n    $project: {\n      _id: 0,\n      city: &quot;$_id&quot;,\n      totalAmount: 1,\n      orderCount: 1\n    }\n  }\n])\n<\/code><\/pre>\n<p><strong>\u6ce8\u610f<\/strong>\uff1a\u5982\u679c <code>vipUserIds<\/code> \u6570\u7ec4\u975e\u5e38\u5927\uff08\u6bd4\u5982\u51e0\u5341\u4e07\uff09\uff0c<code>$in<\/code> \u67e5\u8be2\u53ef\u80fd\u53d8\u6162\u3002\u6b64\u65f6\u53ef\u4ee5\u8003\u8651\u5c06\u7528\u6237\u7b49\u7ea7\u5197\u4f59\u5230\u8ba2\u5355\u6587\u6863\u4e2d\uff08\u53cd\u8303\u5f0f\u8bbe\u8ba1\uff09\uff0c\u6216\u8005\u4f7f\u7528 <code>$lookup<\/code> \u7684\u7ba1\u9053\u5f62\u5f0f\u914d\u5408\u7d22\u5f15\u3002<\/p>\n<h3>\u7b2c\u4e09\u6b65\uff1a\u5229\u7528\u7d22\u5f15\u4e0e explain \u5206\u6790<\/h3>\n<p>\u4e3a <code>orders<\/code> \u96c6\u5408\u521b\u5efa\u590d\u5408\u7d22\u5f15\uff0c\u52a0\u901f\u521d\u59cb <code>$match<\/code>\uff1a<\/p>\n<pre><code class=\"language-javascript\">\ndb.orders.createIndex({ createdAt: 1, status: 1, userId: 1 })\n<\/code><\/pre>\n<p>\u4f7f\u7528 <code>explain<\/code> \u67e5\u770b\u6267\u884c\u8ba1\u5212\uff1a<\/p>\n<pre><code class=\"language-javascript\">\ndb.orders.explain(&quot;executionStats&quot;).aggregate([...])\n<\/code><\/pre>\n<p>\u5173\u6ce8 <code>executionStats.totalKeysExamined<\/code> \u548c <code>totalDocsExamined<\/code>\uff0c\u7406\u60f3\u60c5\u51b5\u4e0b\u5b83\u4eec\u5e94\u8be5\u63a5\u8fd1\u8fd4\u56de\u7684\u6587\u6863\u6570\u3002\u5982\u679c <code>totalDocsExamined<\/code> \u8fdc\u5927\u4e8e <code>nReturned<\/code>\uff0c\u8bf4\u660e\u7d22\u5f15\u672a\u5145\u5206\u5229\u7528\u3002<\/p>\n<h3>\u7b2c\u56db\u6b65\uff1a\u9ad8\u7ea7\u6280\u5de7\u2014\u2014$facet \u5b9e\u73b0\u591a\u7ef4\u5ea6\u5206\u6790<\/h3>\n<p>\u5b9e\u9645\u4e1a\u52a1\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u540c\u65f6\u9700\u8981\u201c\u6309\u57ce\u5e02\u7edf\u8ba1\u201d\u548c\u201c\u6309\u7528\u6237\u7b49\u7ea7\u7edf\u8ba1\u201d\u3002\u7528 <code>$facet<\/code> \u53ef\u4ee5\u5728\u4e00\u6b21\u67e5\u8be2\u4e2d\u5b8c\u6210\u591a\u4e2a\u805a\u5408\uff0c\u907f\u514d\u591a\u6b21\u626b\u63cf\u6570\u636e\u3002<\/p>\n<pre><code class=\"language-javascript\">\ndb.orders.aggregate([\n  {\n    $match: {\n      createdAt: { $gte: ISODate(&quot;2024-05-01&quot;), $lt: ISODate(&quot;2024-06-01&quot;) },\n      status: &quot;completed&quot;\n    }\n  },\n  {\n    $facet: {\n      byCity: [\n        { $match: { userId: { $in: vipUserIds } } },\n        { $lookup: { from: &quot;users&quot;, localField: &quot;userId&quot;, foreignField: &quot;_id&quot;, as: &quot;user&quot; } },\n        { $unwind: &quot;$user&quot; },\n        { $group: { _id: &quot;$user.city&quot;, totalAmount: { $sum: &quot;$totalAmount&quot; }, orderCount: { $sum: 1 } } },\n        { $sort: { totalAmount: -1 } },\n        { $limit: 10 }\n      ],\n      byLevel: [\n        { $lookup: { from: &quot;users&quot;, localField: &quot;userId&quot;, foreignField: &quot;_id&quot;, as: &quot;user&quot; } },\n        { $unwind: &quot;$user&quot; },\n        { $group: { _id: &quot;$user.level&quot;, totalAmount: { $sum: &quot;$totalAmount&quot; }, orderCount: { $sum: 1 } } },\n        { $sort: { totalAmount: -1 } }\n      ]\n    }\n  }\n])\n<\/code><\/pre>\n<p><code>$facet<\/code> \u7684\u6bcf\u4e2a\u5b50\u7ba1\u9053\u72ec\u7acb\u6267\u884c\uff0c\u4f46\u5171\u4eab\u540c\u4e00\u4e2a\u8f93\u5165\u6d41\u3002\u9002\u5408\u9700\u8981\u591a\u4e2a\u7ef4\u5ea6\u62a5\u8868\u7684\u573a\u666f\uff0c\u4f46\u6ce8\u610f\u5185\u5b58\u9650\u5236\uff08\u6bcf\u4e2a\u5b50\u7ba1\u9053\u7ed3\u679c\u4e0d\u80fd\u8d85\u8fc7 100MB\uff0c\u53ef\u5f00\u542f <code>allowDiskUse<\/code>\uff09\u3002<\/p>\n<h3>\u7b2c\u4e94\u6b65\uff1a\u5b9e\u65f6\u5206\u6790\u2014\u2014$merge \u589e\u91cf\u66f4\u65b0<\/h3>\n<p>\u5982\u679c\u6570\u636e\u91cf\u6781\u5927\uff0c\u6bcf\u6b21\u67e5\u8be2\u90fd\u5168\u91cf\u805a\u5408\u4e0d\u73b0\u5b9e\u3002\u53ef\u4ee5\u4f7f\u7528 <code>$merge<\/code> \u5c06\u805a\u5408\u7ed3\u679c\u5199\u5165\u4e00\u4e2a\u6c47\u603b\u96c6\u5408\uff0c\u5b9e\u73b0\u589e\u91cf\u66f4\u65b0\u3002<\/p>\n<pre><code class=\"language-javascript\">\ndb.orders.aggregate([\n  {\n    $match: {\n      createdAt: { $gte: ISODate(&quot;2024-05-01&quot;), $lt: ISODate(&quot;2024-06-01&quot;) },\n      status: &quot;completed&quot;\n    }\n  },\n  {\n    $group: {\n      _id: { city: &quot;$user.city&quot;, date: { $dateToString: { format: &quot;%Y-%m-%d&quot;, date: &quot;$createdAt&quot; } } },\n      totalAmount: { $sum: &quot;$totalAmount&quot; },\n      orderCount: { $sum: 1 }\n    }\n  },\n  {\n    $merge: {\n      into: &quot;daily_city_stats&quot;,\n      on: &quot;_id&quot;,\n      whenMatched: &quot;replace&quot;,\n      whenNotMatched: &quot;insert&quot;\n    }\n  }\n])\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c<code>daily<em>city<\/em>stats<\/code> \u96c6\u5408\u5c31\u4fdd\u5b58\u4e86\u6bcf\u65e5\u5404\u57ce\u5e02\u7684\u6c47\u603b\u6570\u636e\uff0c\u540e\u7eed\u67e5\u8be2\u76f4\u63a5\u8bfb\u8fd9\u4e2a\u96c6\u5408\uff0c\u901f\u5ea6\u63d0\u5347\u767e\u500d\u3002<\/p>\n<h3>\u5e38\u89c1\u5751\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h3>\n<ol>\n<li><strong>$lookup \u6027\u80fd\u9677\u9631<\/strong>\uff1a<code>$lookup<\/code> \u9ed8\u8ba4\u4f7f\u7528\u7d22\u5f15\uff0c\u4f46\u8981\u6c42 <code>foreignField<\/code> \u6709\u7d22\u5f15\u3002\u5982\u679c\u6ca1\u6709\uff0c\u4f1a\u5168\u8868\u626b\u63cf\u3002\u52a1\u5fc5\u4e3a\u5916\u952e\u5b57\u6bb5\u5efa\u7d22\u5f15\u3002<\/li>\n<li><strong>$unwind \u540e\u6570\u636e\u81a8\u80c0<\/strong>\uff1a\u5982\u679c\u6570\u7ec4\u5f88\u5927\uff0c<code>$unwind<\/code> \u4f1a\u4ea7\u751f\u5927\u91cf\u6587\u6863\u3002\u5c3d\u91cf\u5148\u7528 <code>$match<\/code> \u8fc7\u6ee4\u3002<\/li>\n<li><strong>\u5185\u5b58\u9650\u5236<\/strong>\uff1a\u805a\u5408\u9636\u6bb5\u9ed8\u8ba4 100MB \u5185\u5b58\u9650\u5236\uff0c\u5927\u7ed3\u679c\u96c6\u9700\u52a0 <code>{ allowDiskUse: true }<\/code>\u3002<\/li>\n<li><strong>$sort \u4f4d\u7f6e<\/strong>\uff1a<code>$sort<\/code> \u5e94\u5c3d\u91cf\u653e\u5728 <code>$limit<\/code> \u4e4b\u524d\uff0c\u4f46\u5982\u679c <code>$sort<\/code> \u540e\u8ddf <code>$limit<\/code>\uff0cMongoDB \u4f1a\u81ea\u52a8\u4f18\u5316\u3002<\/li>\n<li><strong>\u4f7f\u7528 $project \u51cf\u5c11\u5b57\u6bb5<\/strong>\uff1a\u5c3d\u65e9\u79fb\u9664\u4e0d\u9700\u8981\u7684\u5b57\u6bb5\uff0c\u51cf\u5c11\u5185\u5b58\u5360\u7528\u3002<\/li>\n<li><strong>\u7ba1\u9053\u987a\u5e8f<\/strong>\uff1a<code>$match<\/code> -> <code>$project<\/code> -> <code>$group<\/code> -> <code>$sort<\/code> -> <code>$limit<\/code> \u662f\u9ec4\u91d1\u987a\u5e8f\u3002<\/li>\n<\/ol>\n<h3>\u603b\u7ed3<\/h3>\n<p>MongoDB \u805a\u5408\u7ba1\u9053\u662f\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5de5\u5177\uff0c\u4f46\u6027\u80fd\u53d6\u51b3\u4e8e\u4f60\u5bf9\u6570\u636e\u6d41\u7684\u7406\u89e3\u3002\u8bb0\u4f4f\u4e09\u4e2a\u6838\u5fc3\u539f\u5219\uff1a<strong>\u5c3d\u65e9\u8fc7\u6ee4\u3001\u5229\u7528\u7d22\u5f15\u3001\u51cf\u5c11\u6587\u6863\u81a8\u80c0<\/strong>\u3002\u901a\u8fc7 <code>explain<\/code> \u5206\u6790\u6267\u884c\u8ba1\u5212\uff0c\u7ed3\u5408 <code>$facet<\/code> \u548c <code>$merge<\/code>\uff0c\u4f60\u53ef\u4ee5\u6784\u5efa\u51fa\u65e2\u7075\u6d3b\u53c8\u9ad8\u6548\u7684\u5b9e\u65f6\u5206\u6790\u7cfb\u7edf\u3002<\/p>\n<p>\u4e0b\u4e00\u6b65\uff0c\u5efa\u8bae\u6df1\u5165\u5b66\u4e60 <code>$graphLookup<\/code>\uff08\u56fe\u904d\u5386\uff09\u548c <code>$setWindowFields<\/code>\uff08\u7a97\u53e3\u51fd\u6570\uff09\uff0c\u5b83\u4eec\u80fd\u89e3\u51b3\u66f4\u590d\u6742\u7684\u5206\u6790\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u901a\u8fc7\u4e00\u4e2a\u7535\u5546\u8ba2\u5355\u5206\u6790\u573a\u666f\uff0c\u624b\u628a\u624b\u5e26\u4f60\u638c\u63e1 MongoDB \u805a\u5408\u7ba1\u9053\u7684\u6838\u5fc3\u9636\u6bb5\u4e0e\u4f18\u5316\u6280\u5de7\u3002\u4f60\u5c06\u5b66\u4f1a\u7528 $match\u3001$group\u3001$lookup \u7b49\u6784\u5efa\u9ad8\u6548\u5206\u6790\u67e5\u8be2\uff0c\u5e76\u907f\u5f00\u5e38\u89c1\u6027\u80fd\u9677\u9631\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[64,227,66,115,226],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-3","category-4","tag-mongodb","tag-nosql","tag-66","tag-115","tag-226"],"_links":{"self":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263"}],"version-history":[{"count":0,"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions"}],"wp:attachment":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}