Basic Syntax
Create Index
Unique Index
Drop Index
When to Use Indexes
Index Best Practices
Do:- Index columns used in WHERE clauses
- Index columns used in JOIN conditions
- Index columns used in ORDER BY
- Use unique indexes for email, username, etc.
- Over-index (slows down writes)
- Index rarely queried columns
- Index very small tables
Complete Examples
User Table
Order Table
Database Support
For MongoDB indexes, use native driver methods.
Limitations
Current index implementation supports:- Single column indexes
- UNIQUE constraint
Next Steps
Views
Create virtual tables
Transactions
Group operations safely

