bucket_count | The number of buckets into which a will split. | Integer | The value of the sql.defaults.default_hash_sharded_index_bucket_count . | No |
shard_columns | The first key column or columns to use when computing the shard column for a . The value must match a prefix of the index key columns. If this parameter is omitted, CockroachDB hashes all index key columns. | Tuple of column identifiers or a single column identifier | All index key columns | No |
skip_unique_checks | Disables for indexes with columns, including indexes on tables. This avoids expensive cross-partition uniqueness checks in multi-region deployments. Can only be set on unique indexes with implicit partitioning. Warning: This should only be used if the application can guarantee uniqueness. Safe use cases include externally generated UUIDs, or columns using or as defaults (provided you do not also manually insert values into those columns). Incorrectly applying this parameter when uniqueness is not guaranteed could result in logically duplicate keys in different partitions of a unique index. Note that, by default, the optimizer does not perform uniqueness checks on columns using . | Boolean | false | Yes |
geometry_max_x | The maximum X-value of the for the object(s) being covered. This only needs to be set if you are using a custom . | | Derived from SRID bounds, else (1 << 31) -1. | No |
geometry_max_y | The maximum Y-value of the for the object(s) being covered. This only needs to be set if you are using a custom . | | Derived from SRID bounds, else (1 << 31) -1. | No |
geometry_min_x | The minimum X-value of the for the object(s) being covered. This only needs to be set if the default bounds of the SRID are too large/small for the given data, or SRID = 0 and you wish to use a smaller range (unfortunately this is currently not exposed, but is viewable on <https://epsg.io/3857). By default, SRID = 0 assumes [-min int32, max int32] ranges. | | Derived from SRID bounds, else -(1 << 31). | No |
geometry_min_y | The minimum Y-value of the for the object(s) being covered. This only needs to be set if you are using a custom . | | Derived from SRID bounds, else -(1 << 31). | No |
s2_level_mod | s2_max_level must be divisible by s2_level_mod. s2_level_mod must be between 1 and 3. | Integer | 1 | No |
s2_max_cells | The maximum number of S2 cells used in the covering. Provides a limit on how much work is done exploring the possible coverings. Allowed values: 1-30. You may want to use higher values for odd-shaped regions such as skinny rectangles. Used in . | Integer | 4 | No |
s2_max_level | The maximum level of S2 cell used in the covering. Allowed values: 1-30. Setting it to less than the default means that CockroachDB will be forced to generate coverings using larger cells. Used in . | Integer | 30 | No |