【问题标题】:How to create multiple Vitess Indexes如何创建多个 Vitess 索引
【发布时间】:2020-05-23 05:27:54
【问题描述】:

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

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

【问题讨论】:

    标签: mysql vitess


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-03-17
      • 1970-01-01
      • 1970-01-01
      • 2019-06-24
      • 2022-01-08
      • 2023-03-23
      • 2016-11-07
      • 2011-04-13
      相关资源
      最近更新 更多