Pymongo bulk inserts not working

白昼怎懂夜的黑 提交于 2019-12-01 05:46:24

In pymongo, before V3.0, you use insert for both single-doc and bulk insert. If you pass a document, it performs a single-insert, and if you pass a different iterable (list, generator), it performs bulk insert.

insert_many() does not exist in pymongo before V3.0.

In pymongo V3.0, they introduced insert_many and insert_one, and the use of the plain insert is deprecated.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!