Skip to content

Commit 0dbc436

Browse files
committed
move example
1 parent 4e67ed5 commit 0dbc436

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

source/batch-mode/batch-read-config.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,16 @@ To use this configuration, set the ``partitioner`` configuration option to
286286

287287
**Default:** ``10``
288288

289+
.. example::
290+
291+
For a collection with 640 documents with an average document
292+
size of 0.5 MB, the default ``SamplePartitioner`` configuration creates
293+
5 partitions with 128 documents per partition.
294+
295+
The {+connector-short+} samples 50 documents (the default 10
296+
per intended partition) and defines 5 partitions by selecting
297+
partition field ranges from the sampled documents.
298+
289299
.. _conf-mongoshardedpartitioner:
290300
.. _conf-shardedpartitioner:
291301

@@ -305,16 +315,6 @@ To use this configuration, set the ``partitioner`` configuration option to
305315
We do not recommend using the sharded partitioner when connected to MongoDB v6.0 and later.
306316
2. The sharded partitioner is not compatible with hashed shard keys.
307317

308-
.. example::
309-
310-
For a collection with 640 documents with an average document
311-
size of 0.5 MB, the default ``SamplePartitioner`` configuration creates
312-
5 partitions with 128 documents per partition.
313-
314-
The {+connector-short+} samples 50 documents (the default 10
315-
per intended partition) and defines 5 partitions by selecting
316-
partition field ranges from the sampled documents.
317-
318318
.. _conf-mongopaginatebysizepartitioner:
319319
.. _conf-paginatebysizepartitioner:
320320

0 commit comments

Comments
 (0)