谁能指出如何在Vitess中更改VSchema以适应多个VIndexes。
{
"sharded": true,
"tables": {
"card": {
"column_vindexes": [
{
"column": [
"customerId",
"sourceId"
],
"name": "hash"
}
]
}
},
"vindexes": {
"hash": {
"type": "hash"
}
}
}发布于 2020-02-08 01:56:23
这个文件展示了一个相当复杂的具有多个vindexes的vschema:https://github.com/vitessio/vitess/blob/master/examples/demo/schema/user/vschema.json。如果您已启动并运行了vitess,则可以启动上层目录中的脚本并播放演示。
https://stackoverflow.com/questions/60107307
复制相似问题