4 ms·
Exactly. I decided never to use MongoDB after that. I was already gravitating back to relational DBs anyway. MongoDB was nice for fast iteration on new proje
by w4llstr33t 5y ago
Exactly. I decided never to use MongoDB after that. I was already gravitating back to relational DBs anyway.
MongoDB was nice for fast iteration on new projects, i.e. no alter table scripts required, but in the end it wasn't really an improvement. The data in the DB became hard to manage since different records in a collection could have different fields, due to no consistency or enforcement. Mongoose helped some with that, but then the schema just lived in the application layer instead of the DB. I also found myself needing to do multiple queries to do "joins" across multiple collections, so it ending up being less efficient. There was also the default setting of write and forget, i.e. to not wait for a confirmation that the data actually was written. Who writes a database like that? Performance focused but not data focused. Anyway, I liked the idea of having JS on the client / server (Node.js) / DB, but after some time I came back to relational DBs.