Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Mysql Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-mysql-patterns)
---
name: mysql-patterns
description: "MySQL patterns: InnoDB indexing, online schema changes, isolation levels, replication lag and query tuning."
tags: [database]
---
# Mysql Patterns
## When to use
- MySQL or MariaDB backends
## Procedure
1. Design composite indexes for real queries
2. Use online DDL or gh-ost/pt-osc for large tables
3. Understand REPEATABLE READ gap locks
4. Read from replicas only where lag is acceptable
5. Use EXPLAIN ANALYZE (8.0+)
## Checklist
- [ ] utf8mb4 everywhere
- [ ] Slow query log reviewed
## Anti-patterns
- ALTER TABLE on huge tables during peak