You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyMongo raises DocumentTooLarge in all situations when document that is larger than max_bson_size is sent to DB.
TxMongo fails with two different invalid errors:
when insert() is called with too large document, it fails with OperationFailure
when insert_one() is called, it fails with AutoReconnect, probably because MongoDB closes the connection when TxMongo tries to send too large document with new-style command-based API.
Size checking should be done on TxMongo's size at least in following places:
Database.command (covers all new-style *_one/_many methods)
Old-style insert(), update(), etc.
Bulk ops
The text was updated successfully, but these errors were encountered:
PyMongo raises
DocumentTooLarge
in all situations when document that is larger thanmax_bson_size
is sent to DB.TxMongo fails with two different invalid errors:
insert()
is called with too large document, it fails withOperationFailure
insert_one()
is called, it fails withAutoReconnect
, probably because MongoDB closes the connection when TxMongo tries to send too large document with new-style command-based API.Size checking should be done on TxMongo's size at least in following places:
The text was updated successfully, but these errors were encountered: