mongodb文件大小限制会从16MB增加吗? [英] Will mongodb document size limit be increased from 16MB?

查看:123
本文介绍了mongodb文件大小限制会从16MB增加吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2010年12月中,文档大小从4MB增加到16MB.会进一步增加吗?如果是,什么时候?

The document size increased from 4MB to 16MB, in December 2010. Will it be increased further? If so when?

解决大小问题的一种方法是通过创建更多集合并执行应用程序级别的连接(未通过MongoDB提供)来规范化数据库.

One work around the size is normalization of the database, by creating more collections, and performing application level joins ( not provided thru MongoDB).

(MongoDB中)是否有可用的配置选项可以增加限制或提供解决方法?

Is there a configuration option available (in MongoDB) which increases limit or provides for a work around?

欢迎提出有关限制的解决方法的建议.

Suggestions for workarounds around the limit are welcome.

推荐答案

为此有一个JIRA: https://jira.mongodb.org/browse/SERVER-5923 ,但它在10gen不确定的功能下列出,这意味着我不会屏住呼吸.

There is a JIRA for this: https://jira.mongodb.org/browse/SERVER-5923 but it is listed under features that 10gen are not sure of which means I wouldn't hold your breath.

文档大小实际上是有充分理由的,即内存分配.

The docuent size is what it is for a good reason really, namely memory allocation.

如果您需要超过16meg,则需要认真考虑您所做的事情是否正确. MongoDB可以在客户端进行JOIN的操作,有时您只需要接受一些数据可以在应用程序中更好地分开和JOINed即可.始终嵌入的经验法则是不正确和不正确的.

If you need more than 16meg you need to seriously consider whether what you are doing is right. MongoDB can do JOINs client side and sometimes you just have to accept that some data is better separate and JOINed in the application. The rule of thumb of always embedding is untrue and incorrect.

这篇关于mongodb文件大小限制会从16MB增加吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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