Create a partition

更新时间:
复制 MD 格式

In DashVector, vectors in a collection can be partitioned for management. Partitions let you segment vectors into logical groups so that queries target only the relevant subset, reducing search scope and improving performance.

You can create partitions through the DashVector console, SDKs (Python, Java), or the HTTP API.

Prerequisites

Before you begin, ensure that you have:

Partition naming rules

Every collection includes a partition named default. This partition is created automatically and cannot be deleted.

Custom partition names must meet the following requirements:

Requirement Detail
Length Up to 32 characters
Allowed characters Letters, digits, underscores (_), commas (,), and hyphens (-)
Starting character Must start with a letter
Uniqueness Must be unique within a collection

Create a partition in the console

  1. Log on to the DashVector console.

  2. In the left-side navigation pane, click Clusters. Find your collection and click Details in the Operation column.

    Clusters page

  3. In the left-side bar, click Partition Management.

    Partition Management

  4. Click Create partition, enter a partition name, and then click Confirm.

    Create partition dialog box

Create a partition by using an SDK

  • For more information about how to create a partition by using the SDK for Python, see Create a partition.

  • For more information about how to create a partition by using the SDK for Java, see Create a partition.

Create a partition by using the HTTP API

Send a request to the DashVector HTTP API to create a partition. For the full API specification, see Create a partition (HTTP API).

Related topics