如何创建多个 Vitess 索引
How to create multiple Vitess Indexes
谁能指出如何更改 Vitess 中的 VSchema 以容纳多个 VIndexes。
{
"sharded": true,
"tables": {
"card": {
"column_vindexes": [
{
"column": [
"customerId",
"sourceId"
],
"name": "hash"
}
]
}
},
"vindexes": {
"hash": {
"type": "hash"
}
}
}
此文件展示了具有多个 vindex 的相当复杂的 vschema:https://github.com/vitessio/vitess/blob/master/examples/demo/schema/user/vschema.json。如果你有 vitess up 和 运行,你可以启动上层目录中的脚本并使用演示。
谁能指出如何更改 Vitess 中的 VSchema 以容纳多个 VIndexes。
{
"sharded": true,
"tables": {
"card": {
"column_vindexes": [
{
"column": [
"customerId",
"sourceId"
],
"name": "hash"
}
]
}
},
"vindexes": {
"hash": {
"type": "hash"
}
}
}
此文件展示了具有多个 vindex 的相当复杂的 vschema:https://github.com/vitessio/vitess/blob/master/examples/demo/schema/user/vschema.json。如果你有 vitess up 和 运行,你可以启动上层目录中的脚本并使用演示。