liveBook · Manning

Slow-operation threshold

As explained in MongoDB 8.0 in Action, Third Edition

A slow-operation threshold is a configured execution-time boundary above which database operations are classified as slow.

A slow-operation threshold is an execution-time boundary used to classify database operations as slow. Atlas uses this classification to guide Performance Advisor recommendations for query optimization. section 21.2.1

Atlas provides two threshold behaviors:

  • Use the Atlas-managed threshold to adjust dynamically according to operation times across the cluster. section 21.2.1
  • Disable dynamic adjustment to apply a fixed 100-millisecond threshold; avoid setting this fixed threshold below 100 milliseconds. section 21.2.1
  • Remember that Atlas-managed thresholds are unavailable for M0 and Flex clusters. section 21.2.1

Enable or disable dynamic classification

1. Disable Atlas-managed adjustment with `atlas performanceAdvisor slowOperationThreshold disable`. 2. Re-enable it with `atlas performanceAdvisor slowOperationThreshold enable`. 3. After identifying the relevant node, inspect its slow-query logs with `atlas performanceAdvisor slowQueryLogs list --processName <process-name>`. section 21.2.1

atlas processes list

List Atlas processes before using node-specific Performance Advisor commands. section 21.2.1

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Explains dynamic adjustment, the fixed 100-millisecond fallback, CLI toggles, and cluster limitations.
Examples
Uses Atlas CLI enable and disable commands, process listings, and node-specific slow-query-log inspection.
What it assumes
Assumes an Atlas cluster and CLI access, while introducing process discovery before node-specific performance analysis.
What you can do after
Operate/configure Atlas Performance Advisor by enabling dynamic thresholds or using its fixed 100-millisecond alternative.
How it connects
Connects slow operations with Performance Advisor, slow-query logs, query shapes, indexes, and Atlas processes.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of MongoDB 8.0 in Action, Third Edition. The section links point to the parts of the book it draws on.