InterviewSolution
| 1. |
How Does Journaling Work In Mongodb? |
|
Answer» When running with JOURNALING, MONGODB stores and APPLIES write operations in memory and in the on-disk journal before the changes are present in the data files on disk. WRITES to the journal are atomic, ensuring the consistency of the on-disk journal files. With journaling enabled, MongoDB creates a journal subdirectory within the directory defined by dbPath, which is /data/db by DEFAULT. When running with journaling, MongoDB stores and applies write operations in memory and in the on-disk journal before the changes are present in the data files on disk. Writes to the journal are atomic, ensuring the consistency of the on-disk journal files. With journaling enabled, MongoDB creates a journal subdirectory within the directory defined by dbPath, which is /data/db by default. |
|