Indexes make queries fast; views make complex queries reusable. Together with EXPLAIN, they are the core tools of SQL performance tuning — helping you go from a 10-second query to a 10-millisecond one.
1-A 2-A 3-A 4-A | 5 INDEX 6 automatically 7 = CREATE INDEX idx_orders_user ON orders(user_id); 8 = CREATE VIEW active_users AS SELECT * FROM users WHERE active = 1; 9 = Small tables or write-heavy columns rarely searched | 10 = How the engine executes the query (index used, rows scanned)