this post was submitted on 02 Oct 2023
2 points (75.0% liked)

Programmer Humor

35334 readers
1 users here now

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

Rules:

founded 6 years ago
MODERATORS
 
top 15 comments
sorted by: hot top controversial new old
[–] dan@upvote.au 3 points 2 years ago* (last edited 2 years ago)

Hopefully that swap is on an SSD, otherwise that query may not ever finish lol
Once you're deep into swap, things can get so slow that there's no recovering from it.

[–] KingThrillgore@lemmy.ml 2 points 2 years ago (2 children)

WHAT FUCKING QUERY ARE YOU RUNNING TO USE UP THAT MUCH MEMORY DAMN

[–] frezik@midwest.social 1 points 2 years ago (1 children)

In a database course I took, the teacher told a story about a company that would take three days to insert a single order. Thing was, they were the sort of company that took in one or two orders every year. When it's your whole revenue on the line, you want to make sure everything is correct. The relations in that database were checked to hell and back, and they didn't care if it took a week.

Though that would have been in the 90s, so it'd go a lot faster now.

[–] ladicius@lemmy.world 1 points 2 years ago (1 children)

What did they produce? Cruiseships?

[–] Treczoks@feddit.uk 1 points 2 years ago

We have a company like that here somewhere. When they have one job a year, they have to reduce hours, if they have two, they are doing OK, and if they have three, they have to work overtime like mad. Don't ask me what they are selling, though. It is big, runs on tracks, and fixes roads.

[–] fibojoly@sh.itjust.works 1 points 2 years ago (1 children)

A very very badly written one no doubt..

[–] frezik@midwest.social 1 points 2 years ago

Why stop at just one full table scan?

[–] valen@lemmy.world 2 points 2 years ago

You really need to index your tables. This has all the hallways of a Cartesian cross product.

[–] tiredofsametab@kbin.run 1 points 1 year ago

I don't want to see the EXPLAIN for that query. This person really needs to learn more about sql, I'd wager.

[–] UFODivebomb@programming.dev 1 points 2 years ago (2 children)

I dunno why I didn't realize you can add more swap to a system while running. Nice trick for a dire emergency.

[–] computergeek125@lemmy.world 1 points 2 years ago

Even better, you can swapoff swap too!

[–] LodeMike@lemmy.today 1 points 2 years ago

It's Linux it's made by people with a brain.

[–] Saganaki@lemmy.one 0 points 2 years ago (1 children)
[–] LodeMike@lemmy.today 2 points 1 year ago (1 children)
[–] Saganaki@lemmy.one 3 points 1 year ago

I posted that 10 months ago.

That being said, it seems to still work for me.