Hacker News new | ask | show | jobs
by eindiran 2234 days ago
In my experience, it depends on what data you are trying to store. Is your data composed of JSON documents which may be partially or fully unstructured? Are you pretty sure this isn't going to change? Then consider using Mongo. Otherwise, the decision may (will) bite you in the ass at some point when you end up needing some features of a relational database. The flip side of this is that it can be a boon to use Mongo if you are consuming data that may suddenly change without notice.

Some amount of future-proofing can be done in the case where your data is currently unstructured JSON, but you may need what a relational database offers in the future by using something like Postgres with the JSON data type. But there are tradeoffs between Postgres + JSON and Mongo that you may need to play with to decide which is better for your usecase.

1 comments