You are viewing a single thread.
View all comments View context
1 point

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

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
1 point

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”

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 5.3K

    Monthly active users

  • 884

    Posts

  • 8.9K

    Comments

Community moderators