Is it required to call ‘getlasterror’ to make a write durable?
Answer Posted / Kaushalender Kumar
No, MongoDB uses a Write Concern mechanism that ensures data durability without requiring you to explicitly call getLastError(). However, if you want to check for errors after a write operation, you can use it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers