liveBook · Manning

Atlas Performance Advisor

As explained in MongoDB 8.0 in Action, Third Edition

Atlas Performance Advisor is a MongoDB Atlas tool that analyzes database performance and recommends actions for detected issues.

Atlas Performance Advisor helps identify slow queries and recommend indexes for the collections they affect. Its slow-query threshold adjusts to average operation times in the cluster, so recommendations reflect the workload. Each suggested index comes with sample queries grouped by query shape. section 21.2.1

Inspect recommendations with the Atlas CLI:

  • Run `atlas processes list` to find a node name. The connection string identifies the cluster, but these commands target an individual process. section 21.2.1
  • Pass that name as `--processName` to `atlas performanceAdvisor namespaces list` to inspect namespaces. section 21.2.1
  • Use `atlas performanceAdvisor suggestedIndexes list --processName <node-name>` for index recommendations, or `atlas performanceAdvisor slowQueryLogs list --processName <node-name>` to inspect slow-query logs. section 21.2.1

Review an index recommendation against the queries it would help: extra indexes can slow writes and inserts. The Atlas-managed slow-operation threshold is enabled by default and can be disabled or re-enabled with `atlas performanceAdvisor slowOperationThreshold disable` or `enable`. If disabled, a fixed 100 ms slow-query threshold applies; Atlas-managed thresholds are unavailable on M0 and Flex clusters. section 21.2.1

Performance Advisor also offers schema suggestions for high-traffic collections and slow-running queries. In the Atlas UI, evaluate recommendations such as restructuring fields, adjusting data types, or improving indexes as workloads and document structures change. section 21.2.2

How MongoDB 8.0 in Action, Third Edition covers it

How deep it goes
Walks through process discovery and CLI inspection, then explains threshold behavior and index trade-offs without detailing query execution internals.
Examples
Uses Atlas CLI commands for listing processes, namespaces, suggested indexes, and slow-query logs.
What it assumes
Assumes an Atlas cluster to inspect while showing how to discover its process names before running node-targeted commands.
What you can do after
Apply it via the Atlas CLI and UI to inspect slow queries and evaluate index or schema recommendations.
How it connects
Connects slow-query analysis with indexes, query shapes, schema design, and Atlas performance monitoring.

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.