此问题的原因是什么以及如何解决? [英] what is the cause of this problem and how to resolve it?

查看:117
本文介绍了此问题的原因是什么以及如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

bson.errors.InvalidDocument
InvalidDocument: BSON document too large (30194986 bytes) - the connected server supports BSON document sizes up to 16777216 bytes.


这是我对count运行mongodb查询时遇到的异常.


This is the exception I get when I run mongodb query on count.
What is the cause of this problem and how to resolve it?

推荐答案

由于错误消息明确指出,您的BSON文档超出了支持的限制.
请参见 MongoDB限制和阈值 [
Your BSON document exceed the limit being supported as the error message clearly states.
See MongoDB Limits and Thresholds[^] for documentation about the limit.

The way to solve this is making your document smaller.


这篇关于此问题的原因是什么以及如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆