InterviewSolution
Saved Bookmarks
| 1. |
How Can You Isolate Your Cursors From Intervening With The Write Operations? |
|
Answer» You can use the snapshot() method on a cursor to ISOLATE the operation for a very specific case. snapshot() TRAVERSES the INDEX on the _id field and guarantees that the query will return each DOCUMENT no more than once. You can use the snapshot() method on a cursor to isolate the operation for a very specific case. snapshot() traverses the index on the _id field and guarantees that the query will return each document no more than once. |
|