Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Web Technology by (50.2k points)
Can somebody provide a simple explanation regarding Cursor in MongoDB? What exactly we have to do if the cursor not found exception will happen?

1 Answer

0 votes
by (108k points)

I think your cursor is idle for a long time that is why your cursor is not working. The cursor basically exists on the server-side. It is not divided over a replica set but it is present on the creation of a primary instance which indicates that if any other instance gets over as a primary instance, then the cursor will get lost to the client. For preventing the loss of the cursor, you have to check if your mongo replica set in the MongoDB is uncertain or you have an unstable network.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Oct 18, 2019 in Web Technology by Sammy (47.6k points)
0 votes
1 answer
asked Jan 30, 2020 in Web Technology by anmolj (9k points)
0 votes
1 answer

Browse Categories

...