Member-only story

Mongo DB Schema Design Anti-Patterns — Part 2

Abdullah Al Mamun
JavaScript in Plain English
7 min readFeb 11, 2025

Previously I discussed about the first three

  1. Massive arrays
  2. Massive number of collections
  3. 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.

Photo by Randy Fath on Unsplash

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

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Written by Abdullah Al Mamun

MSc Data Science Graduate | Software Engineer Specializing in .NET Technologies | Skilled in Application Development, System Design and Database Management.

No responses yet

Write a response