Skip to main content
Version: User Guides (Cloud)

Database
Public Preview

A database in on-demand compute is managed by the platform and does not require you to provision or maintain a cluster for it. You specify on-demand compute to perform query search on data in this type of database. For details, see Database Explained.

This guide explains how to manage a database in on-demand compute.

📘Note

This feature is only available to Enterprise projects.

Limitations

  • To manage databases in on-demand compute, you need to be a Project Admin.

  • You can create up to 100 on-demand compute databases in each project.

  • All collections (managed or external) in an on-demand database do not support dropping indexes.

Create database

This type of database is project-level resource shared by all on-demand clusters in the project.

  • Via RESTful API

    export PROJECT_ENDPOINT="https://{project-id}.{region}.api.zillizcloud.com"
    export TOKEN="YOUR_CLUSTER_TOKEN"

    curl --request POST \
    --url "${PROJECT_ENDPOINT}/v2/vectordb/databases/create" \
    --header "Authorization: Bearer ${TOKEN}" \
    --header "Content-Type: application/json" \
    -d '{
    "dbName": "my_database"
    }'
  • Via web console

    OisSw2P8QhBiYqbInlbc8lpKnHc

    1

    Navigate to your project and click On-demand.

    2

    Then click Databases.

    3

    Click Create Database.

    4

    Enter a database name.

    5

    Click Create.

View databases

  • Via RESTful API

    export PROJECT_ENDPOINT="https://{project-id}.{region}.api.zillizcloud.com"
    export TOKEN="YOUR_API_KEY"

    curl --request POST \
    --url "${PROJECT_ENDPOINT}/v2/vectordb/databases/list" \
    --header "Authorization: Bearer ${TOKEN}" \
    --header "Content-Type: application/json" \
    -d '{}'
  • Via web console

    LBPOwbowXhS1e4b7dxxcAIxVnue

Drop database

🚧Warning

Once you drop a database, it is removed immediately and cannot be recovered. This action cannot be undone.

  • Via RESTful API

    export PROJECT_ENDPOINT="https://{project-id}.{region}.api.zillizcloud.com"
    export TOKEN="YOUR_API_KEY"

    curl --request POST \
    --url "${PROJECT_ENDPOINT}/v2/vectordb/databases/drop" \
    --header "Authorization: Bearer ${TOKEN}" \
    --header "Content-Type: application/json" \
    -d '{
    "dbName": "my_database"
    }'
  • Via web console

    MR8pwmkRoh1cnvbcSPfcEiwan4g