Use the Max Time MS option on the Aggregations tab to specify an upper time limit in milliseconds for aggregation pipelines that run in MongoDB Compass.使用聚合选项卡上的“最大时间MS”选项为在MongoDB Compass中运行的聚合管道指定以毫秒为单位的上限时间。
About this Task关于此任务
By default, Max Time MS is set to 60000 milliseconds, or 60 seconds. Consider raising this value if you have a large collection or your operations frequently time out. Alternatively, consider lowering the Max Time MS value to quickly identify inefficient or resource-intensive pipeline operations.默认情况下,“最大时间MS”设置为60000毫秒,即60秒。如果您有大量的集合或操作经常超时,请考虑提高此值。或者,考虑降低最大时间MS值,以快速识别低效或资源密集型的管道操作。
If you already specified a 如果已在Compass设置面板、命令行或配置文件中指定了maxTimeMS value in the Compass Settings panel, the command line, or a configuration file, the Max Time MS that you specify for your pipeline must be lower than the limit you previously specified.maxTimeMS值,则为管道指定的最大时间MS必须低于之前指定的限制。
If your aggregation operation goes over the time limit, Compass raises a timeout error.如果聚合操作超过时间限制,Compass将引发超时错误。
