(ALL-AI)Think. Code. Repeat.

Home Archives
2025-12-24

251224-MongoDB-SlowQuery慢查询定位

1. 直接读 system.profile(最常用)


打开数据库级别的 Profiling

1
2
use vatti
db.setProfilingLevel(1, 500); -- 记录 >50 ms 的操作

2. 可看到慢查询字段

1
2
3
4
db.system.profile.find({millis:{$gte:500}})
.sort({ts:-1})
.limit(1000)
.pretty();
Teilen
Neuer
260106-wincc采集数据-监控OMS-连接是否有效
Älter
251210-google-chrome-bookmark-谷歌浏览器导出书签

Archiv

  • 三月 2026
  • 二月 2026
  • 一月 2026
  • 十二月 2025
  • 十一月 2025
  • 十月 2025
  • 九月 2025
  • 八月 2025
  • 七月 2025
  • 六月 2025
  • 五月 2025

letzter Beitrag

  • 260317-openclaw-skills技能整理
  • 260311-openclaw-cn部署和使用
  • 260310-openclaw部署和使用
  • 260309-Virtualbox主机和虚拟机之间文件夹共享及双向拷贝(Windows<->Windows, Windows<->Linux)
  • 260308-virtualbox-ubuntu-initrams-文件错误
© 2026 owen
Powered by Hexo
Home Archives