3 ms·
I know these kinds of tutorials are just for getting a flavor of a framework or paradigm. Nice so see it. As someone who's used Mongo for nearly a decade, I al
by ruffrey 7y ago
I know these kinds of tutorials are just for getting a flavor of a framework or paradigm. Nice so see it.
As someone who's used Mongo for nearly a decade, I always feel compelled to note: Mongo will NOT scale with relational data like this. Sure, it can handle a lot of records. It'll have fast basic inserts or queries. It can scale with replicaSets and sharding. But it is NOT designed for relational data. Doing relational data is so painful in Mongo, with any sort of scale. Save yourself so much migration headache by using a "regular" SQL database, until it doesn't work (rare).
- taude 7y agoIt should probably go without saying that most distrubuted solutions this days typically have several types of data stores in use: I'm using Postgresl, Redis, and Mongo all the in the solution for the appropriate use cases....
- rumanator 7y agoThat begs the question: what is Mongo's usecase?
- tincholio 7y agoWeb-scale stuff, of course! https://www.youtube.com/watch?v=b2F-DItXtZs https://www.youtube.com/watch?v=b2F-DItXtZs Jokes aside, I had to do some analytics work at my last job, off data that was on Mongo (arguably with no good reason, other than it being 'web scale'), and it was a major pain.
- purerandomness 7y agoIt served its purpose nudging the relational databases to implement stellar JSON data type and querying support. That was its purpose, and I think that's beautiful.
- andrewliakh 7y agoWe actually thought Mongo can be a problem for relations, but opted for it since we are used to it’s comfort of use. Can you recommend any good Java SQL libraries that automatically handle table creation and migrations? We’re so used to having those options it’s hard to go back to writing queries for the DB to do all that.
- npstr 7y agoHave a look at liquibase and flyway. Personally I love using flyway together with jOOQs' code generation (concretely, running the migrations against a docker db container during build, and code-generating the entities/records then based on it).
- lubesGordi 7y agoCan you help me understand what you mean by relational data? The only issue I see with Mongo is if you have many simultaneous updates of a single record, then there is lock contention.
- Elect2 7y agoIt still scale with relational data, provided that separating complicated query into several simple queries.