News for hackers. Stuff that matters.
Re:Why SELECT * is bad for SQL performance (2020) by pfarrell on Monday February 15, 2021 @11:23AM (#26144154)
You’re right. When I wrote that, I was thinking higher up the chain in an orm layer. Sending “select *” to the db can’t be “optimized away” at that layer, it will have to return all the columns. Unless, like you said, the scope of the “select *” contains it in a sub query where the columns used can be known... “it depends :)”

There are no comments on this comment yet.