From 3ea2a7da8f3c3e4032492f460418e22851d3c29a Mon Sep 17 00:00:00 2001
From: AnthonyTsu1984 <115786031+AnthonyTsu1984@users.noreply.github.com>
Date: Fri, 30 Aug 2024 18:09:10 +0800
Subject: [PATCH 1/3] update docs
Signed-off-by: AnthonyTsu1984 <115786031+AnthonyTsu1984@users.noreply.github.com>
---
site/en/userGuide/manage-collections.md | 39 +++++++++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/site/en/userGuide/manage-collections.md b/site/en/userGuide/manage-collections.md
index 54414853a..630f204e8 100644
--- a/site/en/userGuide/manage-collections.md
+++ b/site/en/userGuide/manage-collections.md
@@ -1752,6 +1752,45 @@ $ curl -X POST "http://${MILVUS_URI}/v2/vectordb/collections/get_load_state" \
# }
```
+### Load a collection partially (Public Review)
+
+
+
+This feature is currently in public review. The API and functionality may change in the future.
+
+
+
+Upon receiving your load request, Milvus loads all vector field indexes and all scalar field data into memory. If some fields are not to be involved in searches and queries, you can exclude them from loading to reduce memory usage, improving search performance.
+
+
+
+```python
+# 7. Load the collection
+client.load_collection(
+ collection_name="customized_setup_2",
+ load_fields=["my_id", "my_vector"] # Load only the specified fields
+ skip_load_dynamic_field=True # Skip loading the dynamic field
+)
+
+res = client.get_load_state(
+ collection_name="customized_setup_2"
+)
+
+print(res)
+
+# Output
+#
+# {
+# "state": ""
+# }
+```
+
+Note that only the fields listed in `load_fields` can be used as filtering conditions and output fields in searches and queries. You should always include the primary key in the list. The field names excluded from loading will not be available for filtering or output.
+
+You can use `skip_load_dynamic_field=True` to skip loading the dynamic field. Milvus treats the dynamic field as a single field, so all the keys in the dynamic field will be included or excluded together.
+
+
+
### Release a collection
From 3cbcc811c277594353ff2576b9738f2cf5cc8ebd Mon Sep 17 00:00:00 2001
From: AnthonyTsu1984 <115786031+AnthonyTsu1984@users.noreply.github.com>
Date: Fri, 30 Aug 2024 18:26:57 +0800
Subject: [PATCH 2/3] update docs
Signed-off-by: AnthonyTsu1984 <115786031+AnthonyTsu1984@users.noreply.github.com>
---
site/en/userGuide/manage-partitions.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/site/en/userGuide/manage-partitions.md b/site/en/userGuide/manage-partitions.md
index 36c7068fe..3b3f6dcd5 100644
--- a/site/en/userGuide/manage-partitions.md
+++ b/site/en/userGuide/manage-partitions.md
@@ -806,6 +806,22 @@ console.log(res)
//
```
+To load specified fields in one or more partitions, do as follows:
+
+```python
+client.load_partitions(
+ collection_name="quick_setup",
+ partition_names=["partitionA"],
+ load_fields=["id", "vector"],
+ skip_load_dynamic_field=True
+)
+```
+
+Note that only the fields listed in `load_fields` can be used as filtering conditions and output fields in searches and queries. You should always include the primary key in the list. The field names excluded from loading will not be available for filtering or output.
+
+You can use `skip_load_dynamic_field=True` to skip loading the dynamic field. Milvus treats the dynamic field as a single field, so all the keys in the dynamic field will be included or excluded together.
+
+
### Release Partitions
From 45270c135c34110a11c92fd3b82f99ec12aae656 Mon Sep 17 00:00:00 2001
From: AnthonyTsu1984 <115786031+AnthonyTsu1984@users.noreply.github.com>
Date: Mon, 2 Sep 2024 16:41:35 +0800
Subject: [PATCH 3/3] update-docs-anthony
Signed-off-by: AnthonyTsu1984 <115786031+AnthonyTsu1984@users.noreply.github.com>
---
site/en/userGuide/manage-collections.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/site/en/userGuide/manage-collections.md b/site/en/userGuide/manage-collections.md
index 630f204e8..e4808ed9e 100644
--- a/site/en/userGuide/manage-collections.md
+++ b/site/en/userGuide/manage-collections.md
@@ -1752,11 +1752,11 @@ $ curl -X POST "http://${MILVUS_URI}/v2/vectordb/collections/get_load_state" \
# }
```
-### Load a collection partially (Public Review)
+### Load a collection partially (Public Preview)
-This feature is currently in public review. The API and functionality may change in the future.
+This feature is currently in public preview. The API and functionality may change in the future.