Hey guys! 👋🏻
I wanted to share a big backend decision I made for my microforum, Axion. I'm migrating the database from MongoDB to Postgres.
While MongoDB worked fine to get started, I realized I was fighting against how the database was actually designed to work. Here is why I'm making the switch now:
MongoDB Was Never Built for Deeply Relational Data. Microforums are relational by nature—posts have comments and reactions, and users have posts. MongoDB operates on the mindset of "if X is related to Y, keep them together."
Postgres, on the other hand, was built specifically for relational data. Its JOINs are optimized, whereas doing relational queries in MongoDB feels like a workaround.
Automatic Cleanup Instead of Manual Work.…