Re:Goodbye MongoDB, Hello PostgreSQL (2015)
by Jean-Philipe on Friday March 12, 2021 @11:02AM
(#26437165)
We also used mongoose, which is awesome. In retrospect, I actually wish we had kept mongodb as a read-only database and used postgres as the source of truth. Our data was mostly read-only, with some rather complex relations behind the scenes.
For quick prototypes, I still prefer mongodb.
The cost of adding a column is zero, in terms of schema migration. So that helps with developer velocity. We used an ORM (mongoose), so that we can have added constraints including default values. But Mongo did help us avoid the friction of adding columns.