I am performing update queries on a mongo collection with a lot of records. So I am using skip()
and limit()
functions.
eg: In first file I am working on first 50000 records.
cur1= db.collection_name.find(no_cursor_timeout=True).skip(0).limit(50000)
In send file I am accessing next 50000 records
cur2=db.collection_name.find(no_cursor_timeout=True).skip(50000).limit(50000)
I perform various update queries on these two cursors in separate files. Now I want to know how these updated records are added back in collection? Will cur2 fetch records updated in cur1 queries?