r/SQL • • May 20 '26

PostgreSQL What are common SQL red flags?

Hello! interview prepping, here wondering what are some common red flags for wrioting SQL?

Like

LIKE failing to index, not having trasnactions, usign SELECT * instead of specific collums, etc 😃

49 Upvotes

192 comments sorted by

View all comments

Show parent comment

1

u/Geno0wl May 21 '26

I have ADHD. If I don't keep semi-destriptive variable and function names I will not be able keep track of everything. Especially when sometimes only working on a project only once every few months descriptive names makes reading signicantly less mentally taxing. The extremely minor extra work up front is worth the benefits.

The only real argument against doing it is if you are writing code that needs to be extremely thin hand done assembly code. And the users who need That know what they are doing.