{"id":74505,"date":"2024-07-09T13:00:00","date_gmt":"2024-07-09T04:00:00","guid":{"rendered":"https:\/\/www.creationline.com\/?p=74505"},"modified":"2024-07-11T13:11:19","modified_gmt":"2024-07-11T04:11:19","slug":"mongodb%e3%81%a7%e3%82%bb%e3%83%b3%e3%82%b7%e3%83%86%e3%82%a3%e3%83%96%e3%81%aa%e6%83%85%e5%a0%b1%e3%82%92%e5%90%ab%e3%82%93%e3%81%a0%e3%82%af%e3%82%a8%e3%83%aa%e3%81%8c%e3%83%ad%e3%82%b0%e3%81%ab","status":"publish","type":"post","link":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505","title":{"rendered":"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb"},"content":{"rendered":"\n<p>MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u306e\u5c71\u68ee\u3067\u3059\u3002\u3046\u3060\u308b\u3088\u3046\u306a\u6691\u3055\u306e\u4e2d\u3001\u7686\u3055\u3093\u3044\u304b\u304c\u304a\u904e\u3054\u3057\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u306e\u5730\u5143\u3067\u306f\u9023\u65e536\u5ea6\u3092\u8a18\u9332\u3057\u3066\u304a\u308a\u3001\u6eb6\u3051\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3055\u3066\u3001MongoDB\u3092\u542b\u3081\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8DB\u306f\u3001\u3069\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3082\u67d4\u8edf\u306b\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u4e2d\u3067\u500b\u4eba\u60c5\u5831\u306a\u3069\u306e\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u53d6\u308a\u6271\u3046\u3053\u3068\u3082\u3042\u308b\u306f\u305a\u3067\u3059\u3002\u305d\u3046\u3044\u3063\u305f\u5834\u5408\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306e\u30c7\u30fc\u30bf\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u3088\u308a\u5805\u7262\u306b\u3059\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u5b9f\u884c\u3057\u305f\u30af\u30a8\u30ea\u306e\u5185\u5bb9\u304c\u30ed\u30b0\u306b\u51fa\u529b\u3055\u308c\u3001\u610f\u56f3\u305b\u305a\u306b\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u4ee5\u5916\u306b\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u304c\u8a18\u9332\u3055\u308c\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>MongoDB\u306e\u516c\u5f0f\u30b5\u30dd\u30fc\u30c8\u3084\u3001\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\u63d0\u4f9b\u306e\u65e5\u672c\u8a9e\u30b5\u30dd\u30fc\u30c8\u3067\u306f\u3001mongod\u306e\u30ed\u30b0\u63d0\u4f9b\u3092\u304a\u9858\u3044\u3059\u308b\u30b1\u30fc\u30b9\u304c\u3088\u304f\u3042\u308a\u307e\u3059\u3002\u30b5\u30dd\u30fc\u30c8\u306bmongod\u306e\u30ed\u30b0\u3092\u63d0\u4f9b\u3057\u3066\u3044\u305f\u3060\u304f\u524d\u306b\u3001\u30af\u30a8\u30ea\u5185\u306b\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u304c\u5b58\u5728\u3057\u306a\u3044\u304b\u8abf\u67fb\u3057\u3001\u30de\u30b9\u30af\u3057\u3066\u304b\u3089\u306e\u63d0\u4f9b\u3092\u304a\u9858\u3044\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u3061\u3089\u306f\u975e\u5e38\u306b\u624b\u9593\u3067\u3059\u3088\u306d\u3002<\/p>\n\n\n\n<p>MongoDB Enterprise Advanced\u3067\u306f\u3001\u6a5f\u5bc6\u6027\u306e\u9ad8\u3044\u30c7\u30fc\u30bf\u3092\u30ed\u30b0\u306b\u66f8\u304d\u8fbc\u307e\u306a\u3044\u3088\u3046\u306b\u3001\u4e8b\u524d\u306b\u30de\u30b9\u30af\u3057\u3066\u304f\u308c\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u4eca\u56de\u306f\u305d\u306e\u6a5f\u80fd\u306e\u4f7f\u3044\u65b9\u3068\u3001\u4f7f\u3063\u305f\u7d50\u679c\u3069\u3046\u306a\u308b\u306e\u304b\u4e00\u7dd2\u306b\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u8a18\u9332\u3055\u308c\u3066\u3057\u307e\u3046\u30b1\u30fc\u30b9\u3068\u306f<\/h2>\n\n\n\n<p>MongoDB\u3067\u306f\u3001\u6709\u540d\u306aRDBMS\u3068\u540c\u69d8\u306b\u3001Slow query\u3092\u8a18\u9332\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002Slow query\u306f\u6307\u5b9a\u306e\u6642\u9593\u4ee5\u4e0a\u306b\u5b9f\u884c\u6642\u9593\u304c\u7d4c\u904e\u3059\u308b\u3068\u30ed\u30b0\u306b\u8a18\u9332\u3057\u3066\u304f\u308c\u308b\u6a5f\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<p>mongod.conf\u306b\u8a18\u8f09\u3082\u3057\u304f\u306fmongosh\u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/method\/db.setProfilingLevel\/#db.setprofilinglevel--\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.mongodb.com\/docs\/manual\/reference\/method\/db.setProfilingLevel\/#db.setprofilinglevel--<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/configuration-options\/#operationprofiling-options\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.mongodb.com\/docs\/manual\/reference\/configuration-options\/#operationprofiling-options<\/a><\/p>\n\n\n\n<p>\u4eca\u56de\u306f\u3001\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u306e\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u4f5c\u308a\u3001\u30af\u30a8\u30ea\u3092\u6295\u3052\u3066Slow query\u3092\u8a18\u9332\u3055\u305b\u305f\u5f8c\u3001\u3069\u306e\u3088\u3046\u306b\u8a18\u9332\u30fb\u30de\u30b9\u30af\u3055\u308c\u308b\u306e\u304b\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u691c\u8a3c\u74b0\u5883\u306e\u69cb\u7bc9<\/h2>\n\n\n\n<p>\u4eca\u56de\u306e\u691c\u8a3c\u306b\u3042\u305f\u308a\u3001\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u306e\u30c6\u30b9\u30c8\u30c7\u30fc\u30bf\u3092\u5927\u91cf\u306b\u4f5c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3053\u3067\u6d3b\u8e8d\u3059\u308b\u306e\u304c\u3001<a href=\"\/tech-blog\/71148\">\u4ee5\u524d\u306b\u4f5c\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0<\/a>\u3067\u3059\u3002\u3053\u3046\u3044\u3046\u306e\u3092\u4e00\u5ea6\u4f5c\u3063\u3066\u304a\u304f\u3068\u306a\u306b\u304b\u3068\u4fbf\u5229\u3067\u3059\u3002Slow query\u3092\u51fa\u3059\u306b\u306f\u305d\u308c\u306a\u308a\u306e\u30c7\u30fc\u30bf\u6570\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u3092100\u4e07\u4ef6\u307b\u3069\u653e\u308a\u8fbc\u3093\u3067\u304a\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"_id\": {\n    \"$oid\": \"6687a0a809ab7dd03e0bf0c2\"\n  },\n  \"username\": \"FQyFMgO\",\n  \"password\": \"yAkXuXRUxAsXREILqyYSAJmnekCNOAShyUsoGTZFGAraKXUhHA\",\n  \"age\": 43,\n  \"gender\": \"male\",\n  \"firstname\": \"Lizzie\",\n  \"lastname\": \"Feil\",\n  \"income\": 4988\n}<\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306a\u30c7\u30fc\u30bf\u306b\u5bfe\u3057\u3001Slow query\u3092\u51fa\u3059\u3088\u3046\u306a\u30af\u30a8\u30ea\u306f\u3069\u306e\u3088\u3046\u306b\u306a\u3082\u306e\u3067\u3057\u3087\u3046\u304b\u3002\u4eca\u56de\u3082chatGPT\u541b\u306b\u805e\u3044\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"836\" height=\"998\" src=\"\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/image-7.png\" alt=\"\" class=\"wp-image-74512\" srcset=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/image-7.png 836w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/image-7-302x360.png 302w, https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/image-7-768x917.png 768w\" sizes=\"auto, (max-width: 836px) 100vw, 836px\" \/><\/figure>\n\n\n\n<p>\u3053\u3046\u3044\u3046\u4f7f\u3044\u65b9\u304c\u3067\u304d\u308b\u306e\u3067chatGPT\u541b\u306f\u6709\u7528\u3067\u3059\u306d\u3002\u4eca\u56de\u306f\u3001\u63d0\u6848\u3057\u3066\u3082\u3089\u3063\u305f\u4e2d\u304b\u3089\u3001\u96c6\u8a08\uff08aggregation\uff09\u3092\u4f7f\u3063\u305f\u30af\u30a8\u30ea\u3092\u4f7f\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u304c\u305d\u306e\u30af\u30a8\u30ea\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">db.PersonalData_Fake.aggregate([\n  { $match: { lastname: \"Reichel\" } },\n  { $group: { _id: null, avgIncome: { $avg: \"$income\" } } }\n])<\/pre>\n\n\n\n<p>\u89e3\u8aac\u3059\u308b\u3068\u3001\u7279\u5b9a\u306e\u540d\u5b57\uff08Reichel\uff09\u306e\u30c7\u30fc\u30bf\u306e\u5e73\u5747\u5e74\u53ce\uff08avgIncome\uff09\u3092\u7b97\u51fa\u3059\u308b\u30af\u30a8\u30ea\u3067\u3059\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u304c\u306a\u3051\u308c\u3070COLLSCAN\uff08\u3059\u3079\u3066\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u4e00\u901a\u308a\u8210\u3081\u308b\u30af\u30a8\u30ea\uff09\u3068\u306a\u308b\u306e\u3067\u3001\u78ba\u304b\u306bSlow query\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Slow query\u3092\u8a18\u9332\u3057\u3066\u307f\u308b<\/h2>\n\n\n\n<p>\u3067\u306f\u3001\u5148\u307b\u3069\u306e\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u30ec\u30d7\u30ea\u30ab\u30bb\u30c3\u30c8\u540d\u306f\u300crs0\u300d\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u306f\u300cPersonalDataBase\u300d\u3001\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u540d\u306f\u300cPersonalData_Fake\u300d\u3067\u3059\u3002\u4eca\u56de\u306f\u4f7f\u7528\u3057\u3066\u3044\u308bMongoDB Server Enterprise Advanced\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f6.0.14\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u307e\u305a\u306f\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u304c\u30de\u30b9\u30af\u3055\u308c\u306a\u3044\u30d1\u30bf\u30fc\u30f3\u3092\u898b\u3066\u3044\u304d\u307e\u3059\u3002\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u304c\u5b9f\u884c\u7d50\u679c\u3067\u3059\u3002avgIncome\u304c\u7b97\u51fa\u3055\u308c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Enterprise rs0 [direct: primary] PersonalDataBase> db.PersonalData_Fake.aggregate([\n...   { $match: { lastname: \"Reichel\" } },\n...   { $group: { _id: null, avgIncome: { $avg: \"$income\" } } }\n... ])\n[ { _id: null, avgIncome: 2595.7525439407955 } ]<\/pre>\n\n\n\n<p>\u3053\u306e\u3068\u304d\u306e\u30af\u30a8\u30ea\u304cSlow query\u3068\u3057\u3066mongod.log\u306b\u8a18\u9332\u3055\u308c\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u304c\u305d\u306e\u30ed\u30b0\u3067\u3059\u3002\uff08MongoDB\u306f\u3001\u30ed\u30b0\u3082json\u5f62\u5f0f\u3067\u8a18\u9332\u3055\u308c\u307e\u3059\uff09<\/p>\n\n\n\n<p>\u5c11\u3057\u898b\u3066\u3044\u304f\u306e\u304c\u5927\u5909\u3067\u3059\u304c\u3001attr\u306eCommand\u306e\u90e8\u5206\u3092\u898b\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002pipeline:\u306e\u90e8\u5206\u306b\u5b9f\u884c\u3057\u305f\u30af\u30a8\u30ea\u304c\u8a18\u9332\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u3002\"lastname\": \"Reichel\"\u306f\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u306b\u8a72\u5f53\u3059\u308b\u306f\u305a\u3067\u3059\u304c\u3070\u3063\u3061\u308a\u30ed\u30b0\u306b\u51fa\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u30af\u30a8\u30ea\u306e\u5b9f\u884c\u6642\u9593\u306f\"durationMillis\": 319\u3067\u3059\u3002\u3053\u3061\u3089\u306f\u4e00\u756a\u4e0b\u65b9\u306b\u8a18\u9332\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306f319ms\uff08&gt;100ms\uff09\u304b\u304b\u3063\u305f\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"t\": {\n    \"$date\": \"2024-07-08T13:25:30.122+09:00\"\n  },\n  \"s\": \"I\",\n  \"c\": \"COMMAND\",\n  \"id\": 51803,\n  \"ctx\": \"conn78\",\n  \"msg\": \"Slow query\",\n  \"attr\": {\n    \"type\": \"command\",\n    \"ns\": \"PersonalDataBase.PersonalData_Fake\",\n    \"appName\": \"mongosh 2.2.1\",\n    \"command\": {\n      \"aggregate\": \"PersonalData_Fake\",\n      \"pipeline\": [\n        {\n          \"$match\": {\n            \"lastname\": \"Reichel\"\n          }\n        },\n        {\n          \"$group\": {\n            \"_id\": null,\n            \"avgIncome\": {\n              \"$avg\": \"$income\"\n            }\n          }\n        }\n      ],\n      \"cursor\": {},\n      \"lsid\": {\n        \"id\": {\n          \"$uuid\": \"43479ac1-8fb0-40cf-8439-04f127c825d7\"\n        }\n      },\n      \"$clusterTime\": {\n        \"clusterTime\": {\n          \"$timestamp\": {\n            \"t\": 1720412649,\n            \"i\": 1\n          }\n        },\n        \"signature\": {\n          \"hash\": {\n            \"$binary\": {\n              \"base64\": \"AAAAAAAAAAAAAAAAAAAAAAAAAAA=\",\n              \"subType\": \"0\"\n            }\n          },\n          \"keyId\": 0\n        }\n      },\n      \"$readPreference\": {\n        \"mode\": \"primaryPreferred\"\n      },\n      \"$db\": \"PersonalDataBase\"\n    },\n    \"planSummary\": \"COLLSCAN\",\n    \"keysExamined\": 0,\n    \"docsExamined\": 1000000,\n    \"cursorExhausted\": true,\n    \"numYields\": 1000,\n    \"nreturned\": 1,\n    \"queryHash\": \"ACF5F2E4\",\n    \"planCacheKey\": \"ACF5F2E4\",\n    \"queryFramework\": \"sbe\",\n    \"reslen\": 280,\n    \"locks\": {\n      \"FeatureCompatibilityVersion\": {\n        \"acquireCount\": {\n          \"r\": 1001\n        }\n      },\n      \"Global\": {\n        \"acquireCount\": {\n          \"r\": 1001\n        }\n      },\n      \"Mutex\": {\n        \"acquireCount\": {\n          \"r\": 1\n        }\n      }\n    },\n    \"readConcern\": {\n      \"level\": \"local\",\n      \"provenance\": \"implicitDefault\"\n    },\n    \"writeConcern\": {\n      \"w\": \"majority\",\n      \"wtimeout\": 0,\n      \"provenance\": \"implicitDefault\"\n    },\n    \"storage\": {},\n    \"remote\": \"127.0.0.1:34656\",\n    \"protocol\": \"op_msg\",\n    \"durationMillis\": 319\n  }\n}<\/pre>\n\n\n\n<p>\u3053\u306e\u307e\u307e\u3067\u306f\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3082\u30ed\u30b0\u306b\u8a18\u9332\u3055\u308c\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u30de\u30b9\u30af\u3059\u308b\u6a5f\u80fd\u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">redactClientLogData \u3092\u4f7f\u3046<\/h2>\n\n\n\n<p>\u3053\u3061\u3089\u306f\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u304c\u30ed\u30b0\u306b\u8a18\u9332\u3055\u308c\u308b\u306e\u3092\u9632\u3050\u305f\u3081\u306e\u6a5f\u80fd\u3067\u3059\u3002\u4eca\u56de\u306e\u3088\u3046\u306a\u30b1\u30fc\u30b9\u306b\u304a\u3042\u3064\u3089\u3048\u5411\u304d\u306e\u6a5f\u80fd\u3067\u3059\u306d\u3002\u6a5f\u80fd\u6982\u8981\u306b\u3064\u3044\u3066\u306f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3082\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.mongodb.com\/docs\/manual\/reference\/parameters\/#mongodb-parameter-param.redactClientLogData\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.mongodb.com\/docs\/manual\/reference\/parameters\/#mongodb-parameter-param.redactClientLogData<\/a><\/p>\n\n\n\n<p>\u5b9f\u969b\u306b\u6709\u52b9\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002mongosh\u304b\u3089\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u5b9f\u884c\u30b3\u30de\u30f3\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">db.adminCommand( { setParameter: 1, redactClientLogData : true } )<\/pre>\n\n\n\n<p>\u305d\u3057\u3066\u3001\u305d\u308c\u3092\u5f0a\u793e\u306e\u691c\u8a3c\u74b0\u5883\u3067\u5b9f\u884c\u3057\u3066\u307f\u305f\u7d50\u679c\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Enterprise rs0 [direct: primary] PersonalDataBase> db.adminCommand( { setParameter: 1, redactClientLogData : true } )\n{\n  was: false,\n  ok: 1,\n  '$clusterTime': {\n    clusterTime: Timestamp({ t: 1720412789, i: 1 }),\n    signature: {\n      hash: Binary.createFromBase64('AAAAAAAAAAAAAAAAAAAAAAAAAAA=', 0),\n      keyId: Long('0')\n    }\n  },\n  operationTime: Timestamp({ t: 1720412789, i: 1 })\n}<\/pre>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001\u73fe\u5728\u306e\u8a2d\u5b9a\u5024\u3092\u78ba\u8a8d\u3059\u308b\u306b\u306fgetParameter\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">db.adminCommand({ getParameter: 1, redactClientLogData: 1 })<\/pre>\n\n\n\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Enterprise rs0 [direct: primary] PersonalDataBase> db.adminCommand({ getParameter: 1, redactClientLogData: 1 })\n{\n  redactClientLogData: false,\n  ok: 1,\n  '$clusterTime': {\n    clusterTime: Timestamp({ t: 1720412649, i: 1 }),\n    signature: {\n      hash: Binary.createFromBase64('AAAAAAAAAAAAAAAAAAAAAAAAAAA=', 0),\n      keyId: Long('0')\n    }\n  },\n  operationTime: Timestamp({ t: 1720412649, i: 1 })\n}<\/pre>\n\n\n\n<p>\u8a2d\u5b9a\u304c\u6709\u52b9\u306a\u72b6\u614b\u3067\u3001\u5148\u307b\u3069\u3068\u540c\u3058\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Enterprise rs0 [direct: primary] PersonalDataBase> db.PersonalData_Fake.aggregate([\n...   { $match: { lastname: \"Reichel\" } },\n...   { $group: { _id: null, avgIncome: { $avg: \"$income\" } } }\n... ])\n[ { _id: null, avgIncome: 2595.7525439407955 } ]<\/pre>\n\n\n\n<p>\u4ee5\u4e0b\u306f\u30af\u30a8\u30ea\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306eSlow query\u306e\u30ed\u30b0\u3067\u3059\u3002attr\u306eCommand\u5185\u306e\u30af\u30a8\u30ea\u304c###\u3067\u30de\u30b9\u30af\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n  \"t\": {\n    \"$date\": \"2024-07-08T13:27:29.873+09:00\"\n  },\n  \"s\": \"I\",\n  \"c\": \"COMMAND\",\n  \"id\": 51803,\n  \"ctx\": \"conn78\",\n  \"msg\": \"Slow query\",\n  \"attr\": {\n    \"type\": \"command\",\n    \"ns\": \"PersonalDataBase.PersonalData_Fake\",\n    \"appName\": \"mongosh 2.2.1\",\n    \"command\": {\n      \"aggregate\": \"###\",\n      \"pipeline\": [\n        {\n          \"$match\": {\n            \"lastname\": \"###\"\n          }\n        },\n        {\n          \"$group\": {\n            \"_id\": \"###\",\n            \"avgIncome\": {\n              \"$avg\": \"###\"\n            }\n          }\n        }\n      ],\n      \"cursor\": {},\n      \"lsid\": {\n        \"id\": \"###\"\n      },\n      \"$clusterTime\": {\n        \"clusterTime\": \"###\",\n        \"signature\": {\n          \"hash\": \"###\",\n          \"keyId\": \"###\"\n        }\n      },\n      \"$readPreference\": {\n        \"mode\": \"###\"\n      },\n      \"$db\": \"###\"\n    },\n    \"planSummary\": \"COLLSCAN\",\n    \"keysExamined\": 0,\n    \"docsExamined\": 1000000,\n    \"cursorExhausted\": true,\n    \"numYields\": 1000,\n    \"nreturned\": 1,\n    \"queryHash\": \"ACF5F2E4\",\n    \"planCacheKey\": \"ACF5F2E4\",\n    \"queryFramework\": \"sbe\",\n    \"reslen\": 280,\n    \"locks\": {\n      \"FeatureCompatibilityVersion\": {\n        \"acquireCount\": {\n          \"r\": 1001\n        }\n      },\n      \"Global\": {\n        \"acquireCount\": {\n          \"r\": 1001\n        }\n      },\n      \"Mutex\": {\n        \"acquireCount\": {\n          \"r\": 1\n        }\n      }\n    },\n    \"readConcern\": {\n      \"level\": \"local\",\n      \"provenance\": \"implicitDefault\"\n    },\n    \"writeConcern\": {\n      \"w\": \"majority\",\n      \"wtimeout\": 0,\n      \"provenance\": \"implicitDefault\"\n    },\n    \"storage\": {},\n    \"remote\": \"127.0.0.1:34656\",\n    \"protocol\": \"op_msg\",\n    \"durationMillis\": 294\n  }\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u30af\u30a8\u30ea\u3092\u6539\u5584\u3057\u305f\u3044\u3068\u304d\u306b\u306fDatabase Profiler\u3092\u4f7f\u304a\u3046<\/h2>\n\n\n\n<p>\u30de\u30b9\u30af\u3055\u308c\u308b\u306e\u3067\u3001\u30ed\u30b0\u3092\u7b2c\u4e09\u8005\u306b\u898b\u3066\u3082\u3089\u3046\u3068\u304d\u306b\u4fbf\u5229\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u3053\u306e\u307e\u307e\u3060\u3068\u5b9f\u969b\u306bSlow query\u306e\u30af\u30a8\u30ea\u3092\u6539\u5584\u3059\u308b\u3068\u304d\u306b\u306f\u4e0d\u4fbf\u3067\u3059\u3002\u307b\u304b\u306bSlow query\u306e\u60c5\u5831\u304c\u8a18\u9332\u3055\u308c\u308b\u5834\u6240\u306f\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n\n\n\n<p>MongoDB\u306b\u306fDatabase Profiler\u306e\u6a5f\u80fd\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3061\u3089\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3054\u3068\u306b\u6709\u52b9\u306b\u3067\u304d\u308b\u6a5f\u80fd\u3067\u3059\u3002\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u540c\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5185\u306b\u300csystem.profile\u300d\u3068\u3044\u3046\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u914d\u4e0b\u3067\u300cshow collections\u300d\u3092\u5b9f\u884c\u3059\u308b\u3068\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u4e00\u89a7\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002system.profile\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Enterprise rs0 [direct: primary] PersonalDataBase> show collections\nPersonalData_Fake\nsystem.profile<\/pre>\n\n\n\n<p>Database Profiler\u3092\u6709\u52b9\u306b\u3059\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/www.mongodb.com\/docs\/manual\/tutorial\/manage-the-database-profiler\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.mongodb.com\/docs\/manual\/tutorial\/manage-the-database-profiler\/<\/a><\/p>\n\n\n\n<p>\u305d\u308c\u3067\u306f\u3001system.profile\u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u5185\u306b\u3001\u30af\u30a8\u30ea\u306b\u95a2\u3059\u308b\u60c5\u5831\u304c\u3069\u3046\u8a18\u9332\u3055\u308c\u308b\u306e\u304b\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306f\u3001\u540d\u5b57\uff08Reichel\uff09\u306e\u30c7\u30fc\u30bf\u306e\u5e73\u5747\u5e74\u53ce\uff08avgIncome\uff09\u3092\u7b97\u51fa\u3059\u308b\u30af\u30a8\u30ea\u306b\u95a2\u3059\u308b\u8a18\u9332\u3092\u8868\u793a\u3055\u305b\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Enterprise rs0 [direct: primary] PersonalDataBase> db.system.profile.find({ \"op\": \"command\", \"ns\": \"PersonalDataBase.PersonalData_Fake\", \"command.aggregate\": \"PersonalData_Fake\", \"command.pipeline\": [ { \"$match\": { \"lastname\": \"Reichel\" } }, { \"$group\": { \"_id\": null, \"avgIncome\": { \"$avg\": \"$income\" } } }] }).pretty().limit(1)\n[\n  {\n    op: 'command',\n    ns: 'PersonalDataBase.PersonalData_Fake',\n    command: {\n      aggregate: 'PersonalData_Fake',\n      pipeline: [\n        { '$match': { lastname: 'Reichel' } },\n        { '$group': { _id: null, avgIncome: { '$avg': '$income' } } }\n      ],\n      cursor: {},\n      lsid: { id: UUID('1af1c2ac-5468-4729-ad15-5f3cf6713397') },\n      '$clusterTime': {\n        clusterTime: Timestamp({ t: 1720164872, i: 1 }),\n        signature: {\n          hash: Binary.createFromBase64('AAAAAAAAAAAAAAAAAAAAAAAAAAA=', 0),\n          keyId: Long('0')\n        }\n      },\n      '$readPreference': { mode: 'primaryPreferred' },\n      '$db': 'PersonalDataBase'\n    },\n    keysExamined: 0,\n    docsExamined: 1000000,\n    cursorExhausted: true,\n    numYield: 1000,\n    nreturned: 1,\n    queryHash: 'ACF5F2E4',\n    planCacheKey: 'ACF5F2E4',\n    queryFramework: 'sbe',\n    locks: {\n      FeatureCompatibilityVersion: { acquireCount: { r: Long('1002') } },\n      Global: { acquireCount: { r: Long('1002') } },\n      Mutex: { acquireCount: { r: Long('1') } }\n    },\n    flowControl: {},\n    readConcern: { level: 'local', provenance: 'implicitDefault' },\n    writeConcern: { w: 'majority', wtimeout: 0, provenance: 'implicitDefault' },\n    storage: {\n      data: {\n        bytesRead: Long('212603034'),\n        timeReadingMicros: Long('32142')\n      }\n    },\n    responseLength: 280,\n    protocol: 'op_msg',\n    millis: 515,\n    planSummary: 'COLLSCAN',\n    ts: ISODate('2024-07-05T07:34:47.809Z'),\n    client: '127.0.0.1',\n    appName: 'mongosh 2.2.1',\n    allUsers: [],\n    user: ''\n  }\n]<\/pre>\n\n\n\n<p>\u3053\u3061\u3089\u306b\u306f\u5b9f\u884c\u3057\u305f\u30af\u30a8\u30ea\u5185\u5bb9\u3082\u542b\u3081\u3066\u3057\u3063\u304b\u308a\u8a18\u9332\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u901a\u5e38\u6642\u3001Slow query\u306f\u30de\u30b9\u30af\u3042\u308a\u3067mongod\u306e\u30ed\u30b0\u306b\u8a18\u9332\u3055\u305b\u3001\u5b9f\u969b\u306b\u30af\u30a8\u30ea\u6539\u5584\u3092\u884c\u3046\u3068\u304d\u306fsystem.profile\u306b\u3042\u308b\u60c5\u5831\u3092\u898b\u306a\u304c\u3089\u3084\u308b\u306e\u304c\u3088\u3055\u305d\u3046\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u304c\u7686\u3055\u3093\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u306e\u5c71\u68ee\u3067\u3059\u3002\u3046\u3060\u308b\u3088\u3046\u306a\u6691\u3055\u306e\u4e2d\u3001\u7686\u3055\u3093\u3044\u304b\u304c\u304a\u904e\u3054\u3057\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u306e\u5730\u5143\u3067\u306f\u9023\u65e536\u5ea6\u3092\u8a18\u9332\u3057\u3066\u304a\u308a\u3001\u6eb6\u3051\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\u3002 \u3055\u3066\u3001MongoDB\u3092\u542b\u3081\u305f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8DB\u306f\u3001\u3069\u306e\u3088\u3046 [&#8230;]<\/p>\n","protected":false},"author":66,"featured_media":74534,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[808,79],"tags":[],"class_list":["post-74505","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-k-yamamori","category-mongodb"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3<\/title>\n<meta name=\"description\" content=\"k-yamamori, MongoDB |MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u306e\u5c71\u68ee\u3067\u3059\u3002\u3046\u3060\u308b\u3088\u3046\u306a\u6691\u3055\u306e\u4e2d\u3001\u7686\u3055\u3093\u3044\u304b\u304c\u304a\u904e\u3054\u3057\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u306e\u5730\u5143\u3067\u306f\u9023\u65e536\u5ea6\u3092\u8a18\u9332\u3057\u3066\u304a\u308a\u3001\u6eb6\u3051\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"og:description\" content=\"k-yamamori, MongoDB |MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u306e\u5c71\u68ee\u3067\u3059\u3002\u3046\u3060\u308b\u3088\u3046\u306a\u6691\u3055\u306e\u4e2d\u3001\u7686\u3055\u3093\u3044\u304b\u304c\u304a\u904e\u3054\u3057\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u306e\u5730\u5143\u3067\u306f\u9023\u65e536\u5ea6\u3092\u8a18\u9332\u3057\u3066\u304a\u308a\u3001\u6eb6\u3051\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505\" \/>\n<meta property=\"og:site_name\" content=\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/creationline\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-09T04:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-11T04:11:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/Redsugar20207132_TP_V.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"1067\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"k-yamamori\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@creationline\" \/>\n<meta name=\"twitter:site\" content=\"@creationline\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"k-yamamori\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"3\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505\"},\"author\":{\"name\":\"k-yamamori\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/45365650dafa6b8aea08257d8f2eb9e4\"},\"headline\":\"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb\",\"datePublished\":\"2024-07-09T04:00:00+00:00\",\"dateModified\":\"2024-07-11T04:11:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505\"},\"wordCount\":132,\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Redsugar20207132_TP_V.jpg\",\"articleSection\":[\"k-yamamori\",\"MongoDB\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505\",\"name\":\"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Redsugar20207132_TP_V.jpg\",\"datePublished\":\"2024-07-09T04:00:00+00:00\",\"dateModified\":\"2024-07-11T04:11:19+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/45365650dafa6b8aea08257d8f2eb9e4\"},\"description\":\"k-yamamori, MongoDB |MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u306e\u5c71\u68ee\u3067\u3059\u3002\u3046\u3060\u308b\u3088\u3046\u306a\u6691\u3055\u306e\u4e2d\u3001\u7686\u3055\u3093\u3044\u304b\u304c\u304a\u904e\u3054\u3057\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u306e\u5730\u5143\u3067\u306f\u9023\u65e536\u5ea6\u3092\u8a18\u9332\u3057\u3066\u304a\u308a\u3001\u6eb6\u3051\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505#primaryimage\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Redsugar20207132_TP_V.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2024\\\/07\\\/Redsugar20207132_TP_V.jpg\",\"width\":1600,\"height\":1067},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\\\/74505#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"HOME\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30c7\u30fc\u30bf\u200b\u200b\u30de\u30cd\u30b8\u30e1\u30f3\u30c8\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"MongoDB\",\"item\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/data-management\\\/mongodb\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/\",\"name\":\"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3\",\"description\":\"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/#\\\/schema\\\/person\\\/45365650dafa6b8aea08257d8f2eb9e4\",\"name\":\"k-yamamori\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/Kayou-Yamamori_Profile-150x150.jpg\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/Kayou-Yamamori_Profile-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/cms_x3GWkuX\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/Kayou-Yamamori_Profile-150x150.jpg\",\"caption\":\"k-yamamori\"},\"description\":\"MongoDB\u65e5\u672c\u8a9e\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u3002IT\u30a4\u30f3\u30d5\u30e9\u3084\u904b\u7528\u30fb\u76e3\u8996\u30fb\u4fdd\u5b88\u304c\u597d\u304d\u3067\u3059\u3002 \u7121\u99c4\u306e\u306a\u3044\u69cb\u6210\u3084\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u898b\u3066\u3046\u3063\u3068\u308a\u3057\u3066\u3044\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.creationline.com\\\/tech-blog\\\/author\\\/k-yamamori\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"k-yamamori, MongoDB |MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u306e\u5c71\u68ee\u3067\u3059\u3002\u3046\u3060\u308b\u3088\u3046\u306a\u6691\u3055\u306e\u4e2d\u3001\u7686\u3055\u3093\u3044\u304b\u304c\u304a\u904e\u3054\u3057\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u306e\u5730\u5143\u3067\u306f\u9023\u65e536\u5ea6\u3092\u8a18\u9332\u3057\u3066\u304a\u308a\u3001\u6eb6\u3051\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505","og_locale":"ja_JP","og_type":"article","og_title":"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","og_description":"k-yamamori, MongoDB |MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u306e\u5c71\u68ee\u3067\u3059\u3002\u3046\u3060\u308b\u3088\u3046\u306a\u6691\u3055\u306e\u4e2d\u3001\u7686\u3055\u3093\u3044\u304b\u304c\u304a\u904e\u3054\u3057\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u306e\u5730\u5143\u3067\u306f\u9023\u65e536\u5ea6\u3092\u8a18\u9332\u3057\u3066\u304a\u308a\u3001\u6eb6\u3051\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059","og_url":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505","og_site_name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","article_publisher":"https:\/\/www.facebook.com\/creationline","article_published_time":"2024-07-09T04:00:00+00:00","article_modified_time":"2024-07-11T04:11:19+00:00","og_image":[{"width":1600,"height":1067,"url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/Redsugar20207132_TP_V.jpg","type":"image\/jpeg"}],"author":"k-yamamori","twitter_card":"summary_large_image","twitter_creator":"@creationline","twitter_site":"@creationline","twitter_misc":{"\u57f7\u7b46\u8005":"k-yamamori","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"3\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505#article","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505"},"author":{"name":"k-yamamori","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/45365650dafa6b8aea08257d8f2eb9e4"},"headline":"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb","datePublished":"2024-07-09T04:00:00+00:00","dateModified":"2024-07-11T04:11:19+00:00","mainEntityOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505"},"wordCount":132,"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/Redsugar20207132_TP_V.jpg","articleSection":["k-yamamori","MongoDB"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505","url":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505","name":"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb - Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","isPartOf":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505#primaryimage"},"image":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505#primaryimage"},"thumbnailUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/Redsugar20207132_TP_V.jpg","datePublished":"2024-07-09T04:00:00+00:00","dateModified":"2024-07-11T04:11:19+00:00","author":{"@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/45365650dafa6b8aea08257d8f2eb9e4"},"description":"k-yamamori, MongoDB |MongoDB\u30c6\u30af\u30cb\u30ab\u30eb\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u306e\u5c71\u68ee\u3067\u3059\u3002\u3046\u3060\u308b\u3088\u3046\u306a\u6691\u3055\u306e\u4e2d\u3001\u7686\u3055\u3093\u3044\u304b\u304c\u304a\u904e\u3054\u3057\u3067\u3057\u3087\u3046\u304b\u3002\u79c1\u306e\u5730\u5143\u3067\u306f\u9023\u65e536\u5ea6\u3092\u8a18\u9332\u3057\u3066\u304a\u308a\u3001\u6eb6\u3051\u3066\u3057\u307e\u3044\u305d\u3046\u3067\u3059","breadcrumb":{"@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505#primaryimage","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/Redsugar20207132_TP_V.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2024\/07\/Redsugar20207132_TP_V.jpg","width":1600,"height":1067},{"@type":"BreadcrumbList","@id":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb\/74505#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"HOME","item":"https:\/\/www.creationline.com\/tech-blog"},{"@type":"ListItem","position":2,"name":"\u30c7\u30fc\u30bf\u200b\u200b\u30de\u30cd\u30b8\u30e1\u30f3\u30c8","item":"https:\/\/www.creationline.com\/tech-blog\/data-management"},{"@type":"ListItem","position":3,"name":"MongoDB","item":"https:\/\/www.creationline.com\/tech-blog\/data-management\/mongodb"},{"@type":"ListItem","position":4,"name":"MongoDB\u3067\u30bb\u30f3\u30b7\u30c6\u30a3\u30d6\u306a\u60c5\u5831\u3092\u542b\u3093\u3060\u30af\u30a8\u30ea\u304c\u30ed\u30b0\u306b\u51fa\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044 #mongodb"}]},{"@type":"WebSite","@id":"https:\/\/www.creationline.com\/tech-blog\/#website","url":"https:\/\/www.creationline.com\/tech-blog\/","name":"Tech Blog\uff5c\u30af\u30ea\u30a8\u30fc\u30b7\u30e7\u30f3\u30e9\u30a4\u30f3","description":"\u30a2\u30b8\u30e3\u30a4\u30eb\uff06DevOps\u3001\u30af\u30e9\u30a6\u30c9\u30cd\u30a4\u30c6\u30a3\u30d6\u3001AI\uff06LLM\u306e\u5148\u7aef\u6280\u8853","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.creationline.com\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.creationline.com\/tech-blog\/#\/schema\/person\/45365650dafa6b8aea08257d8f2eb9e4","name":"k-yamamori","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/06\/Kayou-Yamamori_Profile-150x150.jpg","url":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/06\/Kayou-Yamamori_Profile-150x150.jpg","contentUrl":"https:\/\/www.creationline.com\/tech-blog\/cms_x3GWkuX\/wp-content\/uploads\/2023\/06\/Kayou-Yamamori_Profile-150x150.jpg","caption":"k-yamamori"},"description":"MongoDB\u65e5\u672c\u8a9e\u30b5\u30dd\u30fc\u30c8\u62c5\u5f53\u3002IT\u30a4\u30f3\u30d5\u30e9\u3084\u904b\u7528\u30fb\u76e3\u8996\u30fb\u4fdd\u5b88\u304c\u597d\u304d\u3067\u3059\u3002 \u7121\u99c4\u306e\u306a\u3044\u69cb\u6210\u3084\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u898b\u3066\u3046\u3063\u3068\u308a\u3057\u3066\u3044\u307e\u3059\u3002","url":"https:\/\/www.creationline.com\/tech-blog\/author\/k-yamamori"}]}},"_links":{"self":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/74505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=74505"}],"version-history":[{"count":19,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/74505\/revisions"}],"predecessor-version":[{"id":74569,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/posts\/74505\/revisions\/74569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media\/74534"}],"wp:attachment":[{"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=74505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=74505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creationline.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=74505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}