profiling 수준 설정
MongoDB파라미터명령어
db.setProfilingLevel(1, { slowms: 100 })하는 일
느린 쿼리(100 ms 초과)를 system.profile 컬렉션에 기록한다(level 1).
사용 시점
느린 쿼리를 진단하려 할 때.
주의
level 2는 모든 작업을 기록하여 상당한 오버헤드를 추가하며 profiling 데이터가 디스크 공간을 차지한다.
db.setProfilingLevel(1, { slowms: 100 })느린 쿼리(100 ms 초과)를 system.profile 컬렉션에 기록한다(level 1).
느린 쿼리를 진단하려 할 때.
level 2는 모든 작업을 기록하여 상당한 오버헤드를 추가하며 profiling 데이터가 디스크 공간을 차지한다.