Avoid using SELECT * in SQL queries, even for single-column tables, as it can lead to inefficient database operations and performance issues. Explicitly selecting only necessary columns allows for better optimization, reducing overhead related to deserialization, network costs, and query unpredictability. Specific column selection also facilitates easier code maintenance and database schema updates.

6m read timeFrom medium.com
Post cover image
Table of contents
Kiss Index-Only Scans GoodbyeDeserialization CostNot All Columns Are InlineNetwork CostClient DeserializationUnpredictabilityCode GrepSummary
31 Comments

Sort: