0

谁能指出如何更改 Vitess 中的 VSchema 以适应多个 VIndex。

{
    "sharded": true,
    "tables": {
        "card": {
            "column_vindexes": [
                {
                    "column": [
                        "customerId",
                        "sourceId"
                    ],
                    "name": "hash"
                }
            ]
        }
    },
    "vindexes": {
        "hash": {
            "type": "hash"
        }
    }
}
4

1 回答 1

0

此文件展示了具有多个 vindex 的相当复杂的 vschema:https ://github.com/vitessio/vitess/blob/master/examples/demo/schema/user/vschema.json 。如果您已经启动并运行了 vitess,您可以启动上层目录中的脚本并使用演示。

于 2020-02-07T17:56:22.930 回答