--- name: partition description: Use when the user wants to create, list, load, release, or drop partitions in a Milvus collection. --- ## Prerequisites 1. CLI installed, logged in, and cluster context set (see setup skill). 2. Target collection must exist (see collection skill). ## Commands Reference All partition commands accept an optional `--database ` flag. If omitted, the database from the current context is used. ### Create a Partition ```bash zilliz partition create --collection --partition # Optional: --database ``` ### List Partitions ```bash zilliz partition list --collection # Optional: --database ``` ### Drop a Partition ```bash zilliz partition drop --collection --partition # Optional: --database ``` ### Check if a Partition Exists ```bash zilliz partition has --collection --partition # Optional: --database ``` ### Get Statistics ```bash zilliz partition get-stats --collection --partition # Optional: --database ``` ### Load a Partition ```bash zilliz partition load --collection --names '["partition1", "partition2"]' # Optional: --database ``` ### Release a Partition ```bash zilliz partition release --collection --names '["partition1", "partition2"]' # Optional: --database ``` ## Guidance - Every collection has a default `_default` partition. - Partitions allow organizing data for more targeted searches. - A partition must be loaded before it can be searched. - Before dropping a partition, confirm with the user -- all data in it will be deleted. - Use partition stats to check row counts per partition. - For filter expression syntax used in vector operations on partitions, see the vector skill.