java - MongoDB聚合allowDiskUse在Spring Boot中不起作用
问题描述
我正在尝试 allowDiskUse 但这也不起作用并且仍然收到警告aggregation result exceeds maximum document size (16mb)
我试过这个,但会再次抛出同样的警告。可能是什么原因?是它会抛出警告但获取结果还是无法获取结果?
Aggregation aggregation = Aggregation.newAggregation(...).withOptions(Aggregation.newAggregationOptions().allowDiskUse(true).build());
解决方案
推荐阅读
- java - Spring @Autowired 是否为每个 bean 创建新的参数实例?
- html - 使 div 可滚动是内容超过视口的高度
- django - django-sass-processor:加载 sass_tags 并加载静态
- email - 通过另一个 SMTP 服务器问题从 Gmail 发送邮件
- c# - 如何使用 asp.net-mvc 应用程序使用 python 机器学习模型脚本
- c# - 使用滑动控件播放动画和 transform.position 问题 Unity
- c# - 有没有办法在对话更新中快速选择并告诉选择会做什么?
- angular - 如何只生成 API 的接口?
- android - 安卓。前台服务总是停止
- css - 为什么后备字体会禁用 opentype 功能?