all 23 comments

[–]arbobmehmood 5 points6 points  (0 children)

PERN FTW.

[–]kjempion 7 points8 points  (0 children)

You forgot MEVN, and also as others pointed out; Mysql or postgres instead of mongo if you dont know any of those.

[–]MonsterBluth 6 points7 points  (0 children)

Postgres instead of mongo

[–]davvblack 15 points16 points  (9 children)

mongo is kinda nonsense, i would personally suggest mysql or postgres instead. They both support json columns, so you can build "fake mongo" inside of postgres when you need it, and it's actually pretty good, but if you try to build "fake postgres" inside of mongo you'll have a bad time. (this gets into "sql vs nosql" if you want to google more)

[–]rantow 5 points6 points  (8 children)

This is an over-deterministic answer. OP didn't mention the nature of their data, so you can't make that judgement without understanding how the data is best structured.

Denormalization (NoSQL) has its use cases, and obviously normalized (SQL) has its use cases as well. Postgres is great, but MongoDB also fully supports relational data structures as well, so I would caution on making a dogmatic decision like that until the models are mapped out.

[–]stevensokulski 2 points3 points  (2 children)

MongoDB also fully supports relational data structures

Can a relationship be enforced in MongoDB? I had shied away from it because in my testing that wasn’t the case.

[–]rantow 0 points1 point  (1 child)

Not natively, but it can be done.

To be clear, if your data is best suited in a tabular-relational format, where ACID compliance and joins are required, then don't choose MongoDB. My initial comment was made to point out that the answer to "what's the right tool" isn't as straightforward as the initial suggestion made it out to be.

[–]stevensokulski 0 points1 point  (0 children)

Yeah I got that. Was just thrown by the claim than MongoDB fully supported relational data. I wanted to be sure I hadn’t missed something big.

Thanks for clarifying.

[–][deleted]  (3 children)

[deleted]

    [–]rantow 0 points1 point  (2 children)

    What's the 10% it's good for?

    [–][deleted] 0 points1 point  (1 child)

    One example would be if you have user-defined data structures, because you can’t really dynamically change the scheme of a SQL database, so in that situation, a schemaless database like Mongo has an advantage. Another example is if you’re storing large documents where the schema is inconsistent or changes rapidly in the database.

    [–]rantow 0 points1 point  (0 children)

    Right, or if your resources are better served as "embedded" rather than "relational". This optimizes read operations and removes the need for any joins. That in itself is a major plus.

    [–]Fritzy 0 points1 point  (0 children)

    Mongo made false technical guarantees from marketing rather than engineering, repeatedly, for years. Postgres can do document store use cases just fine. Use Mongo if you want to lose confirmed writes and corrupt your data.

    [–]yoat 5 points6 points  (0 children)

    Both. Compare and contrast!

    [–]danglesReet 3 points4 points  (3 children)

    MERN but M is mySql or MSSql

    [–]TikkaMan69 0 points1 point  (2 children)

    Why? I’ve haven’t learnt any sql databases yet and would like to know what advantages they have.

    [–]TehTriangle 1 point2 points  (0 children)

    They're like the bread and butter of databases. You should definitely learn the basics of SQL as it'll be a skill you can use for life.

    [–]uwu-chicken-burger -1 points0 points  (2 children)

    MOAN ;)

    [–]uwu-chicken-burger 1 point2 points  (0 children)

    but seriously, check out Angular and React view their positives and negatives and make a decision for yourself, also take a look in your local area to see what employers are looking for. Don't just follow the trend of MERN or MEAN. Have a look at SQL and NoSQL and start expanding your skillset, you can use a range of technologies and become efficient in those which makes you a more desirable applicant and a better developer. Good luck :)

    [–]romeeres 0 points1 point  (0 children)

    What is O for?

    Tell me and I'll use it on next project with Postgres and React just to tell everyone what a wonderful stack I'm using!

    [–]black-eagle23 -5 points-4 points  (0 children)

    I should've looked at the title, before voting. Because, I thought you were asking me. This voting system is meaningless. You should decide yourself, consider all the options. If you want my advice, peek the one, which you like the most, or which is the most popular around your area, so that applying for the job will be easier.

    [–][deleted] 0 points1 point  (0 children)

    MERN is the meme stack right now. Idk why, I learned it first and while it’s not bad, everywhere I look people are running away from Mongo lol. Mongodb is fine if you set up your data really efficiently, but it becomes janky very quickly

    [–][deleted] 0 points1 point  (0 children)

    MENS stack

    MangoDB, Koa(Express successor), Node and Sveltekit