hi all,
i am trying to update all documents in collection using pymongo
here is my update function,
def update():
for doc in mycol.find():
mycol.update({},{"$set":{"status":"approved"}})
but using above code i am able to update only one docum
Hi,
We have a live site running on Django and uwsgi. Pymongo is being used in
the application for MonogoDB. uwsgi is being used to run the Django
application.
As per Pymongo docs, it has been suggested to use Gevent monkey patching:
https://api.mongodb.org/python/current/examples/gevent.html
2 matches
Mail list logo