File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ Batch Read Configuration Options
10
10
:depth: 1
11
11
:class: singlecol
12
12
13
+ .. facet::
14
+ :name: genre
15
+ :values: reference
16
+
17
+ .. meta::
18
+ :keywords: partitioner, customize, settings
19
+
13
20
.. _spark-batch-input-conf:
14
21
15
22
Overview
@@ -212,9 +219,12 @@ based on your shard configuration.
212
219
To use this configuration, set the ``partitioner`` configuration option to
213
220
``com.mongodb.spark.sql.connector.read.partitioner.ShardedPartitioner``.
214
221
215
- .. warning::
216
-
217
- This partitioner is not compatible with hashed shard keys.
222
+ .. important:: ShardedPartitioner Restrictions
223
+
224
+ 1. In MongoDB Server v6.0 and later, the sharding operation creates one large initial
225
+ chunk to cover all shard key values, making the sharded partitioner inefficient.
226
+ We do not recommend using the sharded partitioner when connected to MongoDB v6.0 and later.
227
+ 2. The sharded partitioner is not compatible with hashed shard keys.
218
228
219
229
.. _conf-mongopaginatebysizepartitioner:
220
230
.. _conf-paginatebysizepartitioner:
You can’t perform that action at this time.
0 commit comments