{"id":2874,"date":"2013-10-30T02:38:29","date_gmt":"2013-10-30T02:38:29","guid":{"rendered":"http:\/\/enjoyasp.net\/?p=2874"},"modified":"2013-10-30T02:38:29","modified_gmt":"2013-10-30T02:38:29","slug":"mongodb%e6%80%a7%e8%83%bd%e7%9b%91%e6%8e%a7","status":"publish","type":"post","link":"https:\/\/enjoyasp.net\/index.php\/2013\/10\/30\/mongodb%e6%80%a7%e8%83%bd%e7%9b%91%e6%8e%a7\/","title":{"rendered":"mongodb\u6027\u80fd\u76d1\u63a7"},"content":{"rendered":"<div>\n\tprofile \u53ef\u4ee5\u76d1\u63a7\u6240\u6709\u6162\u7684\u4ee5\u53ca\u4e0d\u6162\u7684\u67e5\u8be2\u3002<\/div>\n<div>\n\tProfiler\u9ed8\u8ba4\u662f\u5173\u95ed\u7684\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u5168\u90e8\u5f00\u542f\uff0c\u6216\u8005\u6709\u6162\u67e5\u8be2\u7684\u65f6\u5019\u5f00\u542f\u3002<\/div>\n<div>\n\t\u5f00\u542f\uff1a<\/div>\n<div>\n\tdb.setProfilingLevel(2);<\/div>\n<div>\n\t\u5173\u95ed<\/div>\n<div>\n\tdb.setProfilingLevel(0)<\/div>\n<div>\n\t&nbsp;<\/div>\n<div>\n\t\u5f00\u542f\u540e\u4f1a\u5728\u6240\u5728\u5e93\u4e0b\u751f\u6210\u4e00\u4e2asystem.profile\u96c6\u5408\uff0c\u53ef\u5229\u7528\u6b64\u96c6\u5408\u8fdb\u884c\u67e5\u8be2\uff0c\u5982\u6309\u67e5\u8be2\u65f6\u95f4\u5012\u6392<\/div>\n<div>\n\t&nbsp;<\/div>\n<div>\n\t<a href=\"http:\/\/docs.mongodb.org\/manual\/tutorial\/manage-the-database-profiler\/\">Analyze Performance of Database Operations<\/a><\/div>\n<div>\n\t&nbsp;<\/div>\n<div>\n\t&nbsp;<\/div>\n<div>\n\t<a href=\"http:\/\/tech.lezi.com\/archives\/290\">MongoDB\u8fd0\u884c\u72b6\u6001\u3001\u6027\u80fd\u76d1\u63a7\uff0c\u5206\u6790<\/a><\/div>\n<div>\n\t&nbsp;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>profile \u53ef\u4ee5\u76d1\u63a7\u6240\u6709\u6162\u7684\u4ee5\u53ca\u4e0d\u6162\u7684\u67e5\u8be2\u3002 Profiler\u9ed8\u8ba4\u662f\u5173\u95ed\u7684\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u5168\u90e8\u5f00\u542f\uff0c\u6216\u8005\u6709\u6162\u67e5 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[45],"tags":[],"class_list":["post-2874","post","type-post","status-publish","format-standard","hentry","category-mongodb"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/2874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/comments?post=2874"}],"version-history":[{"count":0,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/posts\/2874\/revisions"}],"wp:attachment":[{"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/media?parent=2874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/categories?post=2874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enjoyasp.net\/index.php\/wp-json\/wp\/v2\/tags?post=2874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}