site:v2ex.com/t 千万 亿 mongo 数据库
搜了下这个,挺多哥哥推荐别人用 mongodb 的,不知道是自己真用过还是随口说说,我发现一下子就达到了这个 16MB 的限制,是否他们那么多数据都是用的 GridFS 的?对 mongodb 不熟,我存信息的时候是一个用户一个文档,单个用户的信息没那么大,所以不会超过 =.=但是数据量大的,如日志是怎么个玩法?
BSON Document Size
The maximum BSON document size is 16 megabytes.
The maximum document size helps ensure that a single document cannot use excessive amount of RAM or, during transmission, excessive amount of bandwidth. To store documents larger than the maximum size, MongoDB provides the GridFS API. See mongofiles and the documentation for your driver for more information about GridFS.