ShardingStrategy

Sharding strategy definition

DatabaseDistributed SQLRead-Write SplittingShardingSQLApacheOpen Source

Properties

Name Type Description
type string Strategy type
shardingColumn string Column used for sharding
shardingAlgorithmName string Sharding algorithm reference
View JSON Schema on GitHub

JSON Schema

apache-shardingsphere-sharding-strategy-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shardingsphere/refs/heads/main/json-schema/apache-shardingsphere-sharding-strategy-schema.json",
  "title": "ShardingStrategy",
  "description": "Sharding strategy definition",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "standard",
        "complex",
        "hint",
        "none"
      ],
      "description": "Strategy type"
    },
    "shardingColumn": {
      "type": "string",
      "description": "Column used for sharding"
    },
    "shardingAlgorithmName": {
      "type": "string",
      "description": "Sharding algorithm reference"
    }
  }
}