Member-only story
Mongo DB Schema Design Anti-Patterns — Part 2

Previously I discussed about the first three
- Massive arrays
- Massive number of collections
- Unnecessary indexing
if you are interested about know, you can visit
Now, let’s move on to the next…
4. Bloated documents
The “Bloated Documents” anti-pattern occurs when a MongoDB document contains too much data that is related but not accessed together frequently. This can lead to inefficient queries and memory management issues because unnecessary data gets loaded into memory, slowing down performance.
You might remember the rule from previous post which is, “Data that is accessed together should be stored together”. Note that it doesn’t say, Data that is related to each other should be stored together