Is MongoDB the right choice for your application? Are you aware of disadvantages?

Disclaimer: I’ve worked with ME*N stack for +2 years in production in a well-known company and this is the summary of problems that we’ve endured.

One of the most powerful things about MongoDB is the way it stores the data in a single collection. MongoDB lets you store the data in a de-normalized or normalized way, but most of the time both of them are EVIL!

  • Why MongoDB way of de-normalizing may be bad?
Image for post
Image for post

Generally, the main goal of de-normalizing data is achieving better performance by removing JOINs. However, de-normalizing the data is recommended only when sub-fields ( like “address” and “contact” in the above example ) will be needed when the user is accessed. …

About

Jafar Akhondali

Yet another programmer —https://akhondali.ir

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store