easy5 pts · first answer countssqldatabase-indexing
Purpose of a database index
Your query SELECT * FROM orders WHERE customer_id = 42 is slow on a table with 10 million rows. What does adding an index on customer_id mainly do?
Discussion 0
Join free to post in the discussion.
Related questions
- Stopping SQL injectionBackend Developer
- Rows returned by a LEFT JOINBackend Developer
- What a foreign key enforcesBackend Developer
- Atomicity in a money transferBackend Developer
- COUNT and AVG with NULLsBackend Developer
- Filtering grouped resultsBackend Developer
- Duplicate emails despite a checkBackend Developer
- What EXPLAIN tells youBackend Developer