this post was submitted on 02 Mar 2024
6 points (100.0% liked)

Programmer Humor

32558 readers
448 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
top 18 comments
sorted by: hot top controversial new old
[–] 14th_cylon@lemm.ee 1 points 8 months ago (3 children)

So the guy died and decomposed in 10 minutes and somehow it mysql's fault?

[–] nxdefiant@startrek.website 1 points 8 months ago

10 minutes for a process is essentially infinity

[–] RustyNova@lemmy.world 1 points 8 months ago

Poor guy got sigkill-ed, but MySQL keeps going with the request

[–] OpenStars@startrek.website 1 points 8 months ago

Very big table, complex operations, much waiting, so yeah.

In this comic, bodily decomposition occurs at a "feels like" pace:-).

[–] knobbysideup@sh.itjust.works 1 points 8 months ago (4 children)

Yet it's the sysadmin who gets blamed, not the developer. "How can you tune the database so this doesn't happen?"

[–] stewie410@programming.dev 1 points 8 months ago

I'm the sysadmin (and transitioning to DevOps) at work, but the DBs are 100% in control of our two devs (one of which being the head of IT).

Apparently we're going to hire a third Dev, who will moonlight as our DBA -- oh, and for 30K/yr.

I'm sure this will go well.

[–] Tartas1995@discuss.tchncs.de 1 points 8 months ago (2 children)

I am telling you this because hopefully it will make you feel a little better. Our head of it blames devs for slow queries.

[–] locuester@lemmy.zip 1 points 8 months ago (1 children)

In my 30 years of experience, it is usually the devs.

[–] Tartas1995@discuss.tchncs.de 1 points 8 months ago

As a dev, yes usually. It is certainly the better starting point.

[–] lightnegative@lemmy.world 1 points 8 months ago (1 children)

Devs who don't understand how SQL or relational databases work write absolute abortions of queries.

9 times out of 10 - yes it is absolutely the devs. I say that as the dev who gets tasked with analysing why these shitty queries from our low budget outsourced labour are so slow

[–] Tartas1995@discuss.tchncs.de 1 points 8 months ago (1 children)

So you are saying you are the expert in unshitifying queries? What is the most common thing that needs to be unshitified?

[–] lightnegative@lemmy.world 1 points 8 months ago (1 children)

Err, no? At what point did I claim to be an expert?

It doesn't take a genius to realise that serving 100-record chunks of a billion record dataset using limit 100 offset 582760200 is never gonna perform well

Or that converting indexed time columns to strings and doing string comparisons on them makes every query perform an entire table scan, which is obvious if you actually take the time to look at the query plan (spoiler: they don't)

"Why can't the system handle more than 2 queries per second? This database sucks"

[–] Tartas1995@discuss.tchncs.de 1 points 8 months ago

I didn't mean it so serious. I just tried to express that you seem to have experience with it and I am wondering what you have to deal with. I am sorry if it came across negatively.

[–] bassomitron@lemmy.world 1 points 8 months ago

At my job, it's almost always the dev team that is called first for bad DB performance (not always, because sometimes it is the server that's borked).

[–] Evotech@lemmy.world 1 points 8 months ago

Infinitely this, biggest pet peeve

[–] RagingToad@feddit.nl 1 points 8 months ago (1 children)

Allergic to Indices? If your database is slow just add more Indices until you have one on every column of every table! :-)

[–] GBU_28@lemm.ee 1 points 8 months ago

Hi I need to add some data to the database.

No you fucking don't

[–] 342345@feddit.de 0 points 8 months ago* (last edited 8 months ago)

Why do they wait in line for one guy? It's just a select and there should be multiple employees at the counter, or not?