mongocli atlas performanceAdvisor suggestedIndexes list
On this page
mongocli atlas
commands are now deprecated because there's a new, dedicated CLI available for Atlas users. Migrate to the Atlas CLI to enjoy the same capabilities and the latest features. You can use mongocli atlas
commands until April 30, 2023.Retrieve suggested indexes for collections experiencing slow queries.
The Performance Advisor monitors queries that MongoDB considers slow and suggests new indexes to improve query performance.
Syntax
mongocli atlas performanceAdvisor suggestedIndexes list [options]
Options
Name | Type | Required | Description |
---|---|---|---|
--duration | int | false | Length of time from the since parameter, in milliseconds, for which you want to receive results. |
-h, --help | false | help for list | |
--hostId | string | false | Unique identifier for the host of a MongoDB process. |
--nExamples | int | false | Maximum number of example queries to provide that will be improved by a suggested index. |
--nIndexes | int | false | Maximum number of indexes to suggest. |
--namespaces | string | false | Namespaces from which to retrieve suggested indexes. |
-o, --output | string | false | Output format. Valid values are json, json-path, go-template, or go-template-file. |
--processName | string | false | Unique identifier for the host of a MongoDB process in the following format: {hostname}:{port}. |
--projectId | string | false | Project ID to use. Overrides the settings in the configuration file or environment variable. |
--since | int | false | Point in time, specified as milliseconds since the Unix Epoch, from which you want to receive results. |
Inherited Options
Name | Type | Required | Description |
---|---|---|---|
-P, --profile | string | false | Profile to use from your configuration file. |