Skip to content

Instantly share code, notes, and snippets.

View junoteam's full-sized avatar
😃
Coding hard

Alex Berber junoteam

😃
Coding hard
  • Tel-Aviv
  • 23:26 (UTC +03:00)
View GitHub Profile
@rantav
rantav / README.md
Created August 23, 2012 06:13
Find slow queries in mongo DB

A few show tricks to find slow queries in mongodb

Enable profiling

First, you have to enable profiling

> db.setProfilingLevel(1)

Now let it run for a while. It collects the slow queries ( > 100ms) into a capped collections, so queries go in and if it's full, old queries go out, so don't be surprised that it's a moving target...