mongocli cm performanceadvisor suggestedindexes ls
Retrieve suggested indexes for collections experiencing slow queries
Options
Name | Description |
---|---|
--duration <duration> | Length of time from the since parameter, in milliseconds, for which you want to receive results |
--hostId <hostId> | Unique identifier for the host of a MongoDB process |
--nExamples <nExamples> | Maximum number of example queries to provide that will be improved by a suggested index |
--nIndexes <nIndexes> | Maximum number of indexes to suggest |
--namespaces <namespaces> | Namespaces from which to retrieve suggested indexes |
--output, -o <output> | Output format. Valid values are json, json-path, go-template, or go-template-file |
--processName <processName> | Unique identifier for the host of a MongoDB process in the following format: {hostname}:{port} |
--projectId <projectId> | Project ID to use. Overrides the settings in the configuration file or environment variable |
--since <since> | Point in time, specified as milliseconds since the Unix Epoch, from which you want to receive results |