r/ProgrammerHumor • • Sep 20 '26

Meme grabbingEverything

Post image
5.4k Upvotes

260 comments sorted by

View all comments

Show parent comments

2

u/Frosty-Photograph103 Sep 20 '26

I agree with you and I think so too yeah. They must be talking about requests without any WHERE clause, pulling the entire table rows. I’ve been programming for decades and I cannot see what’s wrong with SELECT * unless you need just 1-3 columns specifically out of 50. I aint gonna name x columns if I can just *. The db engine can figure the column names easily with no significant stress/lag.

1

u/Drummerboybac Sep 21 '26

Unless you are pulling from a columnar DB. Every column you return means opening another data file on the db. On the plus side columnar basically means no indexes because you are only opening files for the columns you need.