No questions available for PDF download.
Database Management
MySQL
Subjective
Oct 01, 2025
What are MySQL's invisible indexes and their use cases?
Detailed Explanation
Invisible indexes are not used by the optimizer but maintained by DML operations.
Use cases:
• Test index effectiveness before dropping
• Gradual index deployment
• A/B testing query performance
Example:
CREATE INDEX idx_email ON users(email) INVISIBLE;
ALTER INDEX idx_email VISIBLE;
Query: SELECT * FROM users WHERE email = 'test@example.com';
-- Won't use invisible index unless forced
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts