Adjust Maximum Time for Query Operations调整查询操作的最长时间¶
The MAX TIME MS query bar option sets the cumulative time limit in milliseconds to process query bar operations. 最大时间MS查询栏选项设置处理查询栏操作的累积时间限制(以毫秒为单位)。If the time limit is reached before the operation completes, Compass interrupts the operation.如果在操作完成前达到时间限制,Compass将中断操作。

The default MAX TIME MS value is 60000, or 60 seconds. 默认的最大时间MS值为60000或60秒。Consider raising this value if you have a very large collection, or your operations are frequently timing out. 如果你有一个非常大的集合,或者你的操作经常超时,请考虑提高这个值。You can also consider creating indexes to improve query performance.还可以考虑创建索引以提高查询性能。
Set MAX TIME MS设置最大时间毫秒¶
Click Options.单击“选项”。Adjust MAX TIME MS to the desired value in milliseconds.将最大时间MS调整为所需的毫秒值。
Learn More了解更多¶
To learn more about MAX TIME MS, see cursor.maxTimeMS() in the MongoDB manual.要了解有关最大时间MS的更多信息,请参阅MongoDB手册中的cursor.maxtimes()
。