Why can SELECT * slow down a query?
The application needs only an order's id and status, but the developer wrote SELECT *. Explain where the database and application might spend extra time. How does the number of selected columns affect data reads and index usage? Why might replacing SELECT * with those two columns make little difference to performance?
ExplainEXPLAIN and optimizationJuniorBackendAnalystData Engineer