Loading...
Loading...
Vitess best practices, query optimization, and connection troubleshooting for PlanetScale Vitess databases. Load when working with PlanetScale Vitess databases, sharding, VSchema configuration, keyspace management, or MySQL-compatible scaling issues.
npx skill4agent add planetscale/database-skills vitess| Concept | What it is |
|---|---|
| Keyspace | Logical database mapping to one or more shards. Analogous to a MySQL schema. |
| Shard | A horizontal partition of a keyspace, each backed by a separate MySQL instance. |
| VSchema | Configuration defining how tables map to shards, vindex (sharding) keys, and routing rules. |
| Vindex | Sharding function mapping column values to shards ( |
| VTGate | Stateless proxy that plans and routes queries to the correct shard(s). |
| Online DDL | Non-blocking schema migrations. On PlanetScale, use deploy requests for production changes. |
3306443LOCK TABLESGET_LOCKSELECT ... FOR UPDATEGROUP BYORDER BYLIMIT| Topic | Reference | Use for |
|---|---|---|
| VSchema | references/vschema.md | VSchema design, vindexes, sequences, sharding strategies |
| Schema Changes | references/schema-changes.md | Online DDL, managed migrations, ddl strategies, migration lifecycle |
| VReplication | references/vreplication.md | MoveTables, Reshard, Materialize, VDiff, VStream |
| Architecture | references/architecture.md | VTGate, VTTablet, Topology Service, VTOrc, component interactions |
| Query Serving | references/query-serving.md | Query routing, MySQL compatibility, cross-shard performance, EXPLAIN |