python - Pymongo: Bulk update with $setOnInsert error -


I am trying to update the bulk, while at the same time maintaining the position of a particular area. In my code I am either making a document or adding 'stuff' to the list. For data in D: '' 'push': {'content': 'something'}, ' '' 'Set': '' '$ setOnInsert': {'status': 0}, '$ inc': {'seq': 1}}) bulkop.execute () < P> However, when I try this I get an error error: pymongo.errors.BulkWriteError: Batch Ops errors occurred

This works fine without $ setOnInsert: {'status' : 0} Extra, but I need to make sure the state is not updating.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -