Skip to content

Commit

Permalink
Merge pull request #2781 from selfuppen/patch-2
Browse files Browse the repository at this point in the history
fix :  default num_partitions value from 16->64 in use-partition-key.md
  • Loading branch information
AnthonyTsu1984 authored Oct 9, 2024
2 parents 91ea1ee + 76ed4d2 commit 10714fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/en/userGuide/use-partition-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ You can use the partition key to implement multi-tenancy. For details on multi-t

To set a field as the partition key, specify `partition_key_field` when creating a collection schema.

In the example code below, `num_partitions` determines the number of partitions that will be created. By default, it is set to `16`. We recommend you retain the default value.
In the example code below, `num_partitions` determines the number of partitions that will be created. By default, it is set to `64`. We recommend you retain the default value.

<div class="language-python">

Expand Down Expand Up @@ -59,7 +59,7 @@ schema = MilvusClient.create_schema(
auto_id=False,
enable_dynamic_field=True,
partition_key_field="color",
num_partitions=16 # Number of partitions. Defaults to 16.
num_partitions=64 # Number of partitions. Defaults to 64.
)

schema.add_field(field_name="id", datatype=DataType.INT64, is_primary=True)
Expand Down

0 comments on commit 10714fe

Please sign in to comment.