People often say SQL has no problem to scale but they've never actually done it

2 years ago by Drew to c/programmingcirclejerk

heavydust 29 points 2 years ago

This guy is vibe coding his queries. That's the future of programming :(

path: 0 16406613, hotness: undefined, score: 29, children: 4
Lightor 3 points 2 years ago

God I hate that term. They just put vibe in front of it and act like copy/pasting things you don't understand is "coding."

path: 0 16406613 16441760, hotness: undefined, score: 3, children: 3
FLP22012005 8 points 2 years ago

I think it is a perfect term. It so accurately describes how terrible the outcome must be. You can use it with other high-skilled jobs as well: vibe surgery, vibe piloting, vibe architecture.

path: 0 16406613 16441760 16443281, hotness: undefined, score: 8, children: 2
Lightor 1 point 2 years ago

I love to hate this

path: 0 16406613 16441760 16443281 16450417, hotness: undefined, score: 1, children: 0
baguettefish 1 point 2 years ago

vibe rator?

path: 0 16406613 16441760 16443281 16443675, hotness: undefined, score: 1, children: 0
Nomad 24 points 2 years ago

Somebody needs to learn to design his database layout by common queries and performance standards.

path: 0 16408728, hotness: undefined, score: 24, children: 0
dohpaz42 21 points 2 years ago

Yโ€™all must be running Oracle DB if your SQL is not scaling.

path: 0 16406630, hotness: undefined, score: 21, children: 0
mvirts 17 points 2 years ago

๐Ÿ˜… what year is this guy living in? SQL has scaled, probably better than any other software paradigm.

path: 0 16415169, hotness: undefined, score: 17, children: 2
Kichae 12 points 2 years ago

Yes, but if I do 80 joins and don't specify join conditions, things get, like, super slow, Scoobs!

path: 0 16415169 16439960, hotness: undefined, score: 12, children: 1
ICastFist 1 point 2 years ago

That's why you should only left outer inner right join with a recursive select!

path: 0 16415169 16439960 16441646, hotness: undefined, score: 1, children: 0
mkwt 12 points 2 years ago

Do we need to bring out the Mongo DB web scale video again?

path: 0 16406220, hotness: undefined, score: 12, children: 4
Custodian6718 4 points 2 years ago

What is it about?

path: 0 16406220 16408655, hotness: undefined, score: 4, children: 2
mkwt 16 points 2 years ago path: 0 16406220 16408655 16409709, hotness: undefined, score: 16, children: 1
Sherry 3 points 2 years ago

thanks for sharing this goldmine

path: 0 16406220 16408655 16409709 16413453, hotness: undefined, score: 3, children: 0
ikidd 2 points 2 years ago

First thing I thought of when I read this, and if you click through to the actual Linkedin post, that's exactly what the twit is saying.

path: 0 16406220 16442644, hotness: undefined, score: 2, children: 0
msage 7 points 2 years ago

Oh, he's on AWS, that might explain some things

path: 0 16441900, hotness: undefined, score: 7, children: 0
TriflingToad 4 points 2 years ago

as someone who has never coded in SQL and only knows some python, SQL is so scalable it sheds every 3 weeks

path: 0 16414294, hotness: undefined, score: 4, children: 0
TedDallas 2 points 2 years ago

How about adding indexes and stats on the appropriate columns, and have look at your execution plan while you're complaining. Bushels of low hanging fruit are ready to be picked for devs who bother with a little SQL performance tuning.

path: 0 16451905, hotness: undefined, score: 2, children: 2
crmsnbleyd 2 points 2 years ago

But that's work! How dare you ask me to do work!

path: 0 16451905 16457208, hotness: undefined, score: 2, children: 0
boonhet 2 points 2 years ago

And if doing pagination, order by an index and add a minimum bound, instead of doing LIMIT 5000,5000.

Oh and if the query optimizer picks a bad index for what you're doing, you can force a better one.

And don't do dependent subqueries and...

Idk, this is stuff I learned in my first year or 2 at my first job in the field. And I've had people on reddit tell me I'm a programmer not a software engineer because I don't have the education so therefore I can only be a code monkey. Yet somehow Amazon pays people 5x my salary to not know how to use SQL efficiently while I'm out here building queries that show no non-index reads, sometimes in databases where I'm not even allowed to add new indexes because of legacy reasons.

path: 0 16451905 16487743, hotness: undefined, score: 2, children: 0
ulterno 1 point 2 years ago

So there was this QA tester filling a million documents in the database (NOSQL) and then using a single fetch to get all the data without pagination and then telling me my library was first being slow and then crashing.

Of course I didn't handle std::bad_alloc

path: 0 16461464, hotness: undefined, score: 1, children: 0
programmingcirclejerk
programmingcirclejerk

@programming.dev

login for more options
304
53
1

Community to talk about enlightened programming takes

Rules:

  • read and follow the programming.dev code of conduct
  • no flamewars
  • mark your unjerks
  • only programming related content allowed
  • link to the original source
  • do not mention this community in places like hackernews, lobste.rs, or the general programming communities on Lemmy where we source jerk material from.

go to feed...