Skip to content

Commit

Permalink
Merge pull request #5955 from planetscale/ds-region-experiment-doc
Browse files Browse the repository at this point in the history
RegionExperimental: improve doc
  • Loading branch information
sougou authored Mar 24, 2020
2 parents 8732595 + 08c973e commit fb66a41
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions go/vt/vtgate/vindexes/region_experimental.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ func init() {
Register("region_experimental", NewRegionExperimental)
}

// RegionExperimental defines a vindex that uses a lookup table.
// The table is expected to define the id column as unique. It's
// Unique and a Lookup.
// RegionExperimental is a multi-column unique vindex. The first column is prefixed
// to the hash of the second column to produce the keyspace id.
// RegionExperimental can be used for geo-partitioning because the first column can denote a region,
// and its value will dictate the shard for that region.
type RegionExperimental struct {
name string
regionBytes int
Expand Down

0 comments on commit fb66a41

Please sign in to comment.