SQL
- Indexes speed selective lookups but add write and storage cost.
- Column order matters in a multicolumn index; test representative predicates.
- Use EXPLAIN ANALYZE to compare actual rows and time with the planner estimate.

SQL · Original AlgoGym revision note with a source for deeper study.