Skip to content

VectorsDB

Databases_

Dive deeper into Appwrite VectorsDB and database configuration. Learn how to create and manage multiple vector databases for your application.

2 min read

Raw

Databases are the largest organizational unit in Appwrite. Each database contains a group of collections.

A database runs on shared or dedicated infrastructure; see shared and dedicated databases.

Create in Console

Create database with VectorsDB selected
Create database with VectorsDB selected

Navigate to the Databases page and click Create database, then choose VectorsDB as the database type. Name the database, select your preferred tier, and pick a replica count and backup policy. Click Create database to finish.

Create using Server SDKs

You can programmatically create a shared database using a Server SDK. Appwrite Server SDKs require an API key.

Choose a specification

Three parameters on create and update decide what a database runs on.

ParameterDescription
specificationThe compute tier. Defaults to serverless, which is the shared pool. Any other value provisions a dedicated database on that tier.
replicasHow many high availability replicas back a dedicated database, from 0 to 5. High availability turns on above 0.
syncModeHow replicas acknowledge writes: async, sync, or quorum. It applies once the database has at least one replica.

Use the listSpecifications method to read the tiers your organization can select, along with their CPU, memory, connection limit, and price.

Each entry has a slug to pass as specification, and an enabled flag that tells you whether your current plan can select it.

List databases

Use the list method to retrieve all databases in your project.

Get a database

Use the get method to retrieve a single database by its ID.

Update a database

Use the update method to change a database's name or enabled state.

Delete a database

Use the delete method to permanently remove a database and all of its collections and documents.

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.