Which of the following are true of the allowDiskUse option in the Aggregation Framework? Check all that apply:
题目选项
- A.Enables configuration of the amount of disk space used on the disk.
- B.Enables writing for pipeline data to temporary files on the disk.
- C.Enables reduction in the processing time for an aggregation pipeline.
答案置信度:高
正确答案:B
解析语言:中文
allowDiskUse 的作用是允许聚合管道在内存中超过 100MB 限制时把中间数据写入磁盘临时文件,从而避免报错(B)。它不能指定磁盘用量上限(A 错),也不保证缩短处理时间——落到磁盘通常更慢(C 错)。