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