mongodb查询并插入数据出错

diemeng1119 发布于 2013/12/19 09:07
阅读 1K+
收藏 0
从数据库里查询符合条件的记录并插入到另一个数据库中,没执行完就终止了,求大神帮助,出现信息:
Wed Dec 18 21:56:15.667 [conn1] { $err: "BSONObj size: 0 (0x00000000) is invalid
. Size must be between 0 and 16793600(16MB) First element: EOO", code: 10334 }
Wed Dec 18 21:56:15.668 [conn1] getmore test.microblogs cursorid:135126098217621
ntoreturn:0 keyUpdates:0 exception: BSONObj size: 0 (0x00000000) is invalid. Si
ze must be between 0 and 16793600(16MB) First element: EOO code:10334 numYields:
4 locks(micros) r:8920037 nreturned:0 reslen:20 8894ms
Wed Dec 18 21:56:15.703 [conn1] end connection 127.0.0.1:49270 (0 connections no
w open) 
加载中
0
lock_free
lock_free
什么东西有16M。图片?
0
只为一诺
只为一诺
mongodb单个文件要求小于16M
0
SIR
SIR

插入过大的文件的话建议使用GridFS吧,BSON有大小限制。

返回顶部
顶部