Loading...
Loading...
Compare original and translation side by side
| 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. |
| Concept | 定义 |
|---|---|
| Keyspace | 映射到一个或多个分片的逻辑数据库,类似于MySQL的schema。 |
| Shard | Keyspace的水平分区,每个分片由独立的MySQL实例提供支持。 |
| VSchema | 定义表如何映射到分片、vindex(分片键)以及路由规则的配置文件。 |
| Vindex | 将列值映射到分片的分片函数(如 |
| VTGate | 无状态代理,负责规划并将查询路由到正确的分片。 |
| Online DDL | 无阻塞的schema迁移。在PlanetScale中,生产环境变更需使用部署请求(deploy requests)。 |
33064433306443LOCK TABLESGET_LOCKSELECT ... FOR UPDATEGROUP BYORDER BYLIMITLOCK 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 |
| 主题 | 参考链接 | 适用场景 |
|---|---|---|
| VSchema | references/vschema.md | VSchema设计、vindex、序列、分片策略 |
| Schema变更 | references/schema-changes.md | Online DDL、托管迁移、DDL策略、迁移生命周期 |
| VReplication | references/vreplication.md | MoveTables、Reshard、Materialize、VDiff、VStream |
| 架构 | references/architecture.md | VTGate、VTTablet、拓扑服务、VTOrc、组件交互 |
| 查询服务 | references/query-serving.md | 查询路由、MySQL兼容性、跨分片性能、EXPLAIN |