Re: [mongodb-user] One-MB ASCII update call busting the 16MB BSONObj size limit

35 views
Skip to first unread message

Bernie Hackett

unread,
Oct 12, 2012, 7:28:33 PM10/12/12
to mongod...@googlegroups.com
Since that exception isn't from PyMongo itself I'm guessing the $push
operation is causing the existing document on the server to exceed
16MB in size.

On Fri, Oct 12, 2012 at 4:20 PM, mcher <mche...@gmail.com> wrote:
> We are getting "BSONObj size" exceptions for exceeding the 16MB limit, using
> pymongo and mongodb 2.N.
> self.coll.update({"name": name}, {"$push": {"mylist":
> longlist}})
>
> The Python longlist is ~100K items long, with items being integers. Mongodb
> 2.1 logs the whole query as a 1MB line. Mongodb 2.2 says that the line is
> 1MB long and logs just the head and the tail. Would anybody know why mongodb
> would turn a 1MB ASCII query into 16MBs of BSON?
>
> --Mike
>
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user...@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb

mcher

unread,
Oct 13, 2012, 10:09:17 PM10/13/12
to mongod...@googlegroups.com
Oops; thanks. Hallucinated that the 16MB limit applied to query/update rather than the whole doc.
  --Mike
Reply all
Reply to author
Forward
0 new messages