对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。
Docs 菜单

db.getProfilingStatus()(mongosh方法)

db.getProfilingStatus()
返回:

当前的profile级别、 slowOpThresholdMs设置和slowOpSampleRate设置。

You can set a filter to control which operations are logged by the profiler. When set, any configured filters are also returned by db.getProfilingStatus(), along with a note explaining filter behavior.

您可以使用以下任一方法设置分析筛选器:

此方法可用于以下环境中托管的部署:

  • MongoDB Atlas:用于云中 MongoDB 部署的完全托管服务

重要

M0 和 Flex 集群不支持此命令。有关更多信息,请参阅不支持的命令。

给本页内容打分

在此页面上