Hi everyone,
I saw the " How MongoDB’s Journaling Works" in this link: How MongoDB's Journaling Works | MongoDB Blog
But i have some questions i don’t understand:
-
What is the purpose of remapped between shared view and private view in the sentence ?
" The last step is that mongod remaps the shared view to the private view. This prevents the private view from getting too “dirty” (having too many changes from the shared view it was mapped from)."
=> Can you show me example of this ? as detailed as possible -
After shared view remapped to private view in the last step. With the next write operation, the same process still repeat ?
mongod map to private view → private view write changes to journal log → journal log replay changes into shared view → shared view flush changes to data file with 60s default by OS → shared view remap to private view
Help me,
Thank you so much