File tree Expand file tree Collapse file tree 2 files changed +68
-56
lines changed Expand file tree Collapse file tree 2 files changed +68
-56
lines changed Original file line number Diff line number Diff line change @@ -46,61 +46,67 @@ Definition
46
46
.. list-table::
47
47
:header-rows: 1
48
48
:widths: 20 20 80
49
-
49
+
50
50
* - Parameter
51
-
51
+
52
52
- Type
53
-
53
+
54
54
- Description
55
-
55
+
56
56
* - ``updateZoneKeyRange``
57
-
57
+
58
58
- string
59
-
59
+
60
60
- The namespace of the collection to associate with the range.
61
-
61
+
62
62
The collection must be sharded for the command to succeed.
63
-
64
-
65
-
63
+
64
+
65
+
66
66
* - ``min``
67
-
67
+
68
68
- document
69
-
69
+
70
70
- The inclusive lower bound of the range of :term:`shard key` values.
71
-
71
+
72
72
Specify each field of the shard key in the form of ``<fieldname> : <value>``.
73
73
The value must be of the same BSON type or types as the shard key.
74
-
75
-
76
-
74
+
75
+ .. note::
76
+
77
+ To use hashed sharding, the field value needs to be of type
78
+ :bsontype:`NumberLong <data_numberlong>`.
79
+
77
80
* - ``max``
78
-
81
+
79
82
- document
80
-
83
+
81
84
- The exclusive upper bound of the range of :term:`shard key` values.
82
-
85
+
83
86
Specify each field of the shard key in the form of ``<fieldname> : <value>``.
84
87
The value must be of the same BSON type or types as the shard key.
85
-
86
-
87
-
88
+
89
+ .. note::
90
+
91
+ To use hashed sharding, the field value needs to be of type
92
+ :bsontype:`NumberLong <data_numberlong>`.
93
+
88
94
* - ``zone``
89
-
95
+
90
96
- string
91
-
97
+
92
98
- The name of the zone to associate with the range bounded by the
93
99
``min`` and ``max``.
94
-
100
+
95
101
If the value does not match an existing zone, the command fails.
96
-
102
+
97
103
Specify ``null`` to remove the association between the range with lower
98
104
bounds of ``min`` and upper bound of ``max`` and the ``updateZoneKeyRange``
99
105
collection. The values of ``min`` and ``max`` must match exactly the target
100
106
range.
101
-
102
-
103
-
107
+
108
+
109
+
104
110
105
111
106
112
If no zone range matches the minimum and maximum bounds passed to
Original file line number Diff line number Diff line change @@ -27,54 +27,60 @@ Definition
27
27
.. list-table::
28
28
:header-rows: 1
29
29
:widths: 20 20 80
30
-
30
+
31
31
* - Parameter
32
-
32
+
33
33
- Type
34
-
34
+
35
35
- Description
36
-
36
+
37
37
* - ``namespace``
38
-
38
+
39
39
- string
40
-
40
+
41
41
- The :term:`namespace` of the sharded collection associate with the ``zone``.
42
-
42
+
43
43
The collection must be sharded for the operation to succeed.
44
-
45
-
46
-
44
+
45
+
46
+
47
47
* - ``minimum``
48
-
48
+
49
49
- document
50
-
50
+
51
51
- The inclusive lower bound of the range of :term:`shard key` values.
52
-
52
+
53
53
Specify each field of the shard key in the form of ``<fieldname> : <value>``.
54
54
The value must be of the same BSON type or types as the shard key.
55
-
56
-
57
-
55
+
56
+ .. note::
57
+
58
+ To use hashed sharding, the field value needs to be of type
59
+ :bsontype:`NumberLong <data_numberlong>`.
60
+
58
61
* - ``maximum``
59
-
62
+
60
63
- document
61
-
64
+
62
65
- The exclusive upper bound of the range of :term:`shard key` values.
63
-
66
+
64
67
Specify each field of the shard key in the form of ``<fieldname> : <value>``.
65
68
The value must be of the same BSON type or types as the shard key.
66
-
67
-
68
-
69
+
70
+ .. note::
71
+
72
+ To use hashed sharding, the field value needs to be of type
73
+ :bsontype:`NumberLong <data_numberlong>`.
74
+
69
75
* - ``zone``
70
-
76
+
71
77
- string
72
-
78
+
73
79
- The name of the zone to associate with the range of shard key values bounded
74
80
by ``minimum`` and ``maximum``.
75
-
76
-
77
-
81
+
82
+
83
+
78
84
79
85
80
86
Only issue :method:`sh.updateZoneKeyRange()` when connected to a
You can’t perform that action at this time.
0 commit comments