DatabasePublic 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.
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
1Navigate to your project and click On-demand.
2Then click Databases.
3Click Create Database.
4Enter a database name.
5Click 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

Drop database
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
