by johncs · 6y ago · 0 comments
Retrieving a whole row rather than just a single column from a database that's likely on a local network definitely doesn't seem "hugely wasteful", especially for smaller projects.
Database performing a table read because additional columns were requested shouldn't change the complexity class if the query was otherwise successfully satisfied using the index.
I searched the article for "complexity class" and, while I found the phrase, it didn't explain much.
But yes, you're right: just going to the heap is not a change in complexity class.