Visão Geral
Este curso aprofunda os conceitos de indexação e otimização de consultas no MariaDB, abordando como o banco de dados processa queries, utiliza índices e executa planos de execução. O foco está em melhorar desempenho, reduzir consumo de recursos e escrever SQL eficiente seguindo boas práticas consolidadas.
Conteúdo Programatico
Module 1 – Query Execution Fundamentals
- How SQL Queries are Executed
- Query Optimizer Overview
- Execution Plan Concepts
- Cost-based Optimization
Module 2 – Index Fundamentals
- What is an Index
- How Indexes Work
- Index Types
- Index Trade-offs
Module 3 – Index Types in MariaDB
- B-Tree Index
- Hash Index
- Full-Text Index
- Composite Index
Module 4 – Index Design Strategies
- Choosing Columns for Indexes
- Index Selectivity
- Covering Indexes
- Index Order and Cardinality
Module 5 – Using EXPLAIN and ANALYZE
- EXPLAIN Output
- EXPLAIN ANALYZE
- Reading Execution Plans
- Identifying Inefficiencies
Module 6 – Query Optimization Techniques
- Optimizing WHERE Clauses
- Optimizing JOINs
- Avoiding Full Table Scans
- Query Refactoring
Module 7 – Index Maintenance
- Creating and Dropping Indexes
- Index Fragmentation
- Monitoring Index Usage
- When to Remove Indexes
Module 8 – Performance Tools and Logs
- Slow Query Log
- Performance Schema Overview
- Query Profiling
- Monitoring Tools
Module 9 – Common Performance Problems
- Over-indexing
- Missing Indexes
- Inefficient Queries
- Real-world Optimization Scenarios
Module 10 – Best Practices for Performance
- Index Naming Conventions
- Balancing Read and Write Performance
- Testing and Validation
- Professional Optimization Checklist