The Backend Engineering Show with Hussein Nasser cover image

MongoDB Internal Architecture | The Backend Engineering Show

The Backend Engineering Show with Hussein Nasser

00:00

M Map

The core of discord moved from Mongo DB because their indexes were so large, they couldn't even fit in memory. If your index doesn't fit in memory, that means as you traverse the operating system will swap files and swap things to disk if it's not used. The entire file is now scrambled, right? Because the documents are based on offset. That was a problem. Plus another problem with the M map is the locking model, right? There's a responsibility of the storage engine really locking,. How do you prevent two people from editing the same document at the same time? You shouldn't really do that, right?

Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner