I have a delulu.
Because when I learn a topic, I have a delulu that I've learned it perfectly.
Then the real test comes or a question comes up, and I go blank.
I need to see my notes. And I dart my eyes across my notes, then I memorize all the things.
I think I have a delulu. I learn everything perfectly, but it's always wrong. I always need my notes.
But this is not only for me. MongoDB does the same thing. It also maintains notes.
Very strange, but it maintains notes called a Journal.
Is MongoDB also have a delulu, because it maintains Journals.
ummmm 🤔🤔 not exactly delulu, but it needs to protect itself against failures.
Assume MongoDB is writing data to disk, and suddenly the power goes out or some crash occurs. Writing data to disk takes time. The crash can leave incomplete operations in the database.
Now it becomes a situation like I learned all the things, but I don't yet remember where to start. And then I open my notes and again memorize all the content or context.
MongoDB uses the WiredTiger storage engine, which maintains a journal.
It uses the journal to recover changes that were committed but not yet successfully written to the database's data files.
firstly it successfully writes a change to its journal.
Before that change is fully written to the database files, the server crashes.
This helps maintain database consistency and durability.
But one important thing is that it does not protect against accidental deletion or disk failure, and one thing is that it is not a backup of the database.
so what is your thought about the delusion. Can you have.
