Best way to read and update mongodb documents using pymongo
问题 iam trying to read a mongodb collection document by document in order to fetch every record encrypt some of fields in the record and put it back to database. for record in coll.find(): #modifying record here coll.update(record) this is causing a serious problem i.e already updated documents are read again by cursor and same document is processed again in loop (same document is trying to update again) hope this may be one of the solution to the problem. list_coll = [record for record in coll