Checks whether a collection has indexes and gives the user an option to add them. Adding an index may improve performance of some of the read operations.
codefresh offline-logs ensure-index
Option | Alias | Type | Default | Description |
---|---|---|---|---|
--uri | string | Mongodb URI. If not provided, will be parsed from environment variable RUNTIME_MONGO_URI. | ||
--db | string | Database name. If not provided, will be parsed from environment variable RUNTIME_MONGO_DB. | ||
--help | Print help information |
codefresh offline-logs ensure-index --uri "mongodb://192.168.99.100:27017" --db logs