Skip to content

Commit

Permalink
Release new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Milvus-doc-bot authored and Milvus-doc-bot committed Oct 9, 2024
1 parent ae07a5b commit 73d4da8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v2.4.x/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 73d4da8

Please sign in to comment.