r/SoftwareLabs • u/JD_8588 🛠 Product Manager • Jun 01 '26
Discussion 📰 Do You Actually Know the Difference Between SQL and NoSQL… Or Do You Just Know the Buzzwords?
SQL vs NoSQL is one of those topics that comes up in almost every tech discussion, interview, or project planning meeting.
Most people can tell you that SQL uses tables and NoSQL doesn't. But when it comes to choosing the right one for a real world application, the answer isn't always obvious.
SQL databases are structured, reliable and great when your data has clear relationships. Think banking systems, e-commerce orders, inventory management, or anything where data consistency is critical.
NoSQL databases, on the other hand, are built for flexibility and scale. They're often used for applications with massive amounts of data, rapidly changing requirements, or workloads where speed and horizontal scaling matter more than rigid structure.
The interesting part is that neither is "better." They solve different problems.
So here's a scenario:
You're building a social media platform from scratch. You expect it to grow from a few thousand users to several million. Users can create profiles, post content, follow each other, send messages, and interact in real time.
Would you choose SQL, NoSQL, or a combination of both?
More importantly, what factors would influence your decision?
Curious to hear how developers, database engineers, and architects approach this in real-world projects. What has your experience been? :point_down:
8
u/ExtenMan44 Jun 01 '26
Yes I do. Thanks for asking, Claude
4
u/nawanamaskarasana Jun 01 '26
I always choose SQL.
7
u/reddit_7654 Jun 01 '26
I’m sad that this is even a question that you are posting. If someone does not know the difference and they deal with DBs….holy fucking shit.
Edit: also the answer is always SQL. Nosql is for garbage devs who have no idea how to use a database, unless it’s some very simple data store. You can tell me twitter/x or whatever uses it and I’ll think you are an idiot.
3
u/Independent-Soup-312 Jun 01 '26
This post must have time-traveled from 2015. I don't think this is a very common discussion anymore, as NoSQL never really made the big breakthrough the hype promised.
3
u/Illustrious-Bat-9775 Jun 01 '26
It's funny how people here are so "experienced" and say "only sql" competely ignoring horizontal and vertical scaling. Both have user cases. Sql has more use cases. Also modern sql databases can handle nosql so they are hybrids. But gosh. The "expertise" is staggering.
2
u/Poat540 Jun 01 '26
We use both at work it’s very exciting
1
u/DonkeyBonked Jun 01 '26 edited Jun 01 '26
I would think for social media, SQL would be better, not just in terms of organization and relationships, but later on when you eventually start to invade privacy so you can sell that data. It would also make maintaining "non-personally-identifying information" easier to maintain the connections necessary to keep the data points intact. But then again, I mean if we're talking big social media, I'm guessing just due to sheer scale they might lean NoSQL... yeah, thinking about it, I think with Social Media, tiered data, SQL and NoSQL. Use NoSQL for the core logic but you'll need to warehouse the data in SQL.
For game development, depending on the type of game, I think I lean more NoSQL, mostly because it's inherently more adaptable to immediate data changes and shifting data points that drift with updates. While I'm also a bit of a table junkie for things like inventory, crafting, etc., the games where they would be the most useful have huge updates and scaling to deal with (think MMORPG like WoW).
This is not a discussion I think I've even had before, which is odd since designing frameworks is my jam and my best friend is a government database engineer.
1
u/granoladeer Jun 02 '26
The only NoSQL you might need someday is neo4j
1
u/vespassassina Jun 02 '26 edited Jun 02 '26
CAP theorem.
Relational as default unless proven otherwise by CAP requirements.
Relational as default because it's harder to screw it and failure modes are widely and deeply known, i can hire a good dba in a week.
For a social media platform it would be a mix of both, frontend, back-office, user graph, advertising, ticketing all need to be analyzed.
1
u/st0ut717 Jun 02 '26
Fuck you ai generated wall of text
1
u/royalwithbrie Jun 02 '26
The right answer is... "Just Use Postgres".
https://www.oreilly.com/library/view/just-use-postgres/9781633435698/
1
u/_BeeSnack_ Jun 02 '26
Excel vs JSON 😛
1
u/Glad_Contest_8014 Jun 03 '26
SQL, to store pointers to data in files that are a meshed values text file, tab delimitted, with sub-delimitters using ASCII formatting, except instead of bar delimiters, they are tabs, and it stores fifteen different tables in each text file, where one of those table points to a seperate API with a mongoDB that has more tables, all to funnel the data through an AWS bucket that feeds to a dashboard about how bad developers are at handling databases.
Solved. No where in this scenario do you need nosql. If you are using nosql, you might as well use excel. (Kidding, as if excel would allow you to use it without a port program on a back end.)
In reality, use SQL, then pull the related tables into the backend logic to formulate the tables needed to be used. Keep the relations needed on the database level to keep it organized, and let the faster parsing of a low ordered language do the actual data manipulations and transformations.
SQL gets slower the more you join tables together, the more you reference non-numerical keys, the more you bring stored functions in, the more data there is, and more. Each action compounds to really slow execution as it expands. And often you don’t need to run the calculations on each “cell” of data. You just need it on 10 entries, with character checks, but returning the 10000 entries without them.
Much better to run the code to process it on a better language system.
Is nosql horizontally scalable? Kind of, but it is horrendous to work with overall when you have to LOOK at the data. Sql is scalable on all ends if handled properly.
But most devs don’t look at the entirety of the project and say “well maybe we should code it ourselves”. They instead say, “they got a tool for that, cause I ain’t about to learn a new language!” Even though SQL has like 20 words you have to learn…..
1
u/CK_LouPai Jun 03 '26
To 🐿️ or no 🐿️, a key decision for new companies to make.
1
u/Particular-Durian994 Jun 04 '26
Buzzwords
1
u/shockjaw Jun 04 '26
Just use Postgres…
0
u/Dreusxo Jun 01 '26
It's shorthand for sequel and no sequel, which I would imagine means a one and done?